API DOCUMENTATION

Circle

Create a circle by entering a center point, radius, colors and transparency.Radius values is in M(Meter)

new fatosmap.maps.Circle({ option })

 

Parameter
Required Parameter Description
center Set the latitude,longitude{lat: ,lng: }
radius specifies the Radius of the circle in M(Meter)

Optional Parameter Description
fillColor specifies a hexadecimal HTML color of the format "#FFFFFF".The Circle class does not support named colors.Default is '#000000'
fillOpacity specifies a numerical value between 0.0 and 1.0 to determine the opacity of the fill's color. The default is 1.0
text Optional formatted. Defaults to "
textColor Optional color. Defaults to "#000000". Requires text option.
textHaloColor Optional color. Defaults to "rgba(0, 0, 0, 0)". Requires text option.
textHaloWidth Optional number greater than or equal to 0. Units in pixels. Defaults to 0. Requires text option.
textSize Optional number greater than or equal to 0. Units in pixels. Defaults to 16. Requires text option.
textOffset Optional array of numbers. Units in ems. Defaults to [0,0]. Requires text option.

 

Example
let center = {lat: 37.5650745, lng:126.9850103}

	
let cityCircle = new fatosmap.maps.Circle({	
    fillColor: '#FF0000',	
    fillOpacity: 0.35,	
    center: center,
    radius:10*100
    text: 'FATOS',
    textColor:'#fff',
    textSize: 25,
    textOffset:[5,4]
    textHaloWidth:10
	
});	
	
cityCircle.setMap(mapInstance)

 

 

RemoveCircle

Clears the circle drawn on the map.

Example
cityCircle.setMap(null)

 

 

RemoveAllCircle

Clears the all circle drawn on the map.

Example
cityCircle.setMap(‘removeAll’)

 

 

Visibility

Optional enum. One of “visible”, “none”. Defaults to “visible”.

Example
cityCircle.setVisible(‘none’)