Search
CircleMarker.radius Property
See Also
 






Gets or sets the radius of this Marker in meters.

Namespace: MindFusion.Mapping
File: CircleMarker.js

 Syntax

JavaScript  Copy Code

get radius() {}

 Property Value

Number. The radius in meters.

 Example

The following code creates a new CircleMarker and adds it to the decorations of a DecorationLayer.

JavaScript  Copy Code

var m = MindFusion.Mapping;

// create a new instance of the mapView
var view = new m.MapView(document.getElementById("mapView"));
view.theme = "light";
view.mapBounds = new m.LatLongRect(51.507351, -0.127758, 48.856613, 2.352222);

var markers = new m.DecorationLayer("Images");

// create some markers with images
var mark = new m.CircleMarker(new m.LatLong(51.507351, -0.127758), 5);
mark.text = "London";
marker.id = 12;
markers.decorations.add(mark);

view.layers.add(markers);

 See Also