ASP.NET Pack Programmer's Guide
CircleMarker.radius Property
See Also
 





Gets or sets the radius of this Marker in meters.

Namespace: MindFusion.Mapping
Package: CircleMarker.js

 Syntax

JavaScript  Copy Code

Object.defineProperty(CircleMarker.prototype, "radius", { value: Number });

 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

CircleMarker Members
CircleMarker Class
MindFusion.Mapping Namespace