kendoMap
Namespace: Wisej.Web.Ext.Kendo
Assembly: Wisej.Web.Ext.Kendo (4.1.0.0)
The Map displays geospatial information organized in layers and is supported for both desktop and mobile devices.
- C#
- VB.NET
public class kendoMap : kendoBase
Public Class kendoMap
Inherits kendoBase
Constructors
kendoMap()
Constructs a new instance of the kendoMap class.
Example:
The following example creates a map with an OpenStreetMap tile layer and centers it through the Options property.
var map = new kendoMap();
map.Options.center = new[] { 45.4642, 9.19 };
map.Options.zoom = 11;
map.Options.layers = new object[]
{
new
{
type = "tile",
urlTemplate = "https://#= subdomain #.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
subdomains = new[] { "a", "b", "c" }
}
};
map.Dock = DockStyle.Fill;
this.Controls.Add(map);
kendoMap(options)
Constructs a new instance of the kendoMap class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options. |
Example:
The following example creates a map with an OpenStreetMap tile layer and a marker.
var map = new kendoMap(new
{
center = new[] { 48.8566, 2.3522 },
zoom = 12,
layers = new object[]
{
new
{
type = "tile",
urlTemplate = "https://#= subdomain #.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
subdomains = new[] { "a", "b", "c" }
}
},
markers = new object[]
{
new { location = new[] { 48.8584, 2.2945 }, shape = "pinTarget", tooltip = new { content = "Eiffel Tower" } }
}
});
map.Dock = DockStyle.Fill;
this.Controls.Add(map);