ASP.NET Pack Programmer's Guide
Marker.text Property
See Also
 





Gets or sets the text of this Marker.

Namespace: MindFusion.Mapping
Package: Marker.js

 Syntax

JavaScript  Copy Code

Object.defineProperty(Marker.prototype, "text", { value: String });

 Property Value

String. The text.

 Example

The following code creates a new Marker and adds it to the decorations list of a MapView:

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";


// create some markers with images
var mark = new m.Marker(new m.LatLong(-22.951916, -43.210487));
mark.imageSrc = "./images/christ_redeemer.png";
mark.text = "Christ the Redeemer";

view.decorations.add(mark);

 See Also

Marker Members
Marker Class
MindFusion.Mapping Namespace