API DOCUMENTATION

Polyline
Set longitude/latitude, color, transparency, line thickness, etc.Draw a line on the map by combining the set value.Collects the values of multiple coordinates and express them as lines.

new fatosmap.maps.Polyline({ option })

Parameter : Polyline

Required Parameter Description
path Set an array of coordinate objects
[{lat: ,lng: },{lat: lng: },,,,,]

Optional Parameter Description
strokeColor specifies a hexadecimal HTML color of the format "#FFFFFF",Default is '#000000'
strokeOpacity specifies a numerical value between 0.0 and 1.0 to determine the opacity of the line's color. The default is 1.0
strokeWeight specifies the width of the line in pixels.Default is 1
Optional Parameter Description
strokeColor specifies a hexadecimal HTML color of the format "#FFFFFF",Default is '#000000'

[ example : Polyline ]

let line = [	
    {lat: 37.772, lng: -122.214},	
    {lat: 21.291, lng: -157.821},	
    {lat: -18.142, lng: 178.431},	
    {lat: -27.467, lng: 153.027}	
];	
let polyline = new fatosmap.maps.Polyline({	
    path: line,                 	
    strokeColor: '#0000FF',     	
    strokeOpacity: 0.5,       	
    strokeWeight: 10
    message: 'FATOS',
    anchor: 'bottom',
    offset: 15,
    closeButton: true,
    closeOnClick: true,            	
});	
	
polyline.setMap(mapInstance)

removePolyline
Clears the path drawn on the map.

[ example ] 

polyline.setMap(null)