Skip to main content

Maps

Namespace: Wisej.Web.Ext.Syncfusion2

Assembly: Wisej.Web.Ext.Syncfusion2 (4.1.0.0)

The Maps component is used to visualize the geographical data and represent the statistical data of a particular geographical area on earth with user interactivity, and provides various customizing options.

public class Maps : ej2Base

Constructors​

Instance member Maps()​

Constructs a new instance of the Maps class.

Example:

The following example creates a map that shows the OpenStreetMap tiles and configures it through the Options object.

var maps = new Maps();
maps.Options.zoomSettings = new { enable = true };
maps.Options.layers = new[]
{
new { urlTemplate = "https://tile.openstreetmap.org/level/tileX/tileY.png" }
};
maps.Dock = DockStyle.Fill;
this.Controls.Add(maps);

Instance member Maps(options)​

Constructs a new instance of the Maps class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a map centered on a location and marks it with a marker.

var maps = new Maps(new
{
centerPosition = new { latitude = 41.9028, longitude = 12.4964 },
zoomSettings = new { enable = true, zoomFactor = 10 },
layers = new[]
{
new
{
urlTemplate = "https://tile.openstreetmap.org/level/tileX/tileY.png",
markerSettings = new[]
{
new
{
visible = true,
shape = "Balloon",
dataSource = new[] { new { latitude = 41.9028, longitude = 12.4964, name = "Rome" } }
}
}
}
}
});
maps.Dock = DockStyle.Fill;
this.Controls.Add(maps);

Implements​