Hi Folks,
i would like to update the markers of a map through signalR. i got it right for a grid control. but in map control, i just get a stack space error and nothing more.
Is it possible, that the map control has no implementation for this scenario, or am i missing something else?
Binding is done as follows:
@(Html.Kendo().Map()
.Name("mapVessels")
.Layers(layers =>
{
layers.Add()
.Type(MapLayerType.Tile)
.UrlTemplate("https://#= subdomain #.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png")
.Subdomains("a", "b", "c")
.Attribution("© <a href='http://osm.org/copyright'>OpenStreetMap contributors</a>");
layers.Add()
.Type(MapLayerType.Marker)
.DataSource(dataSource => dataSource
.SignalR()
.AutoSync(true)
.Schema(schema => schema
.Model(model =>
{
model.Id("ID");
model.Field("ID", typeof(Guid)).Editable(false);
}))
.Events(events => events.Push("onPush"))
.Transport(tr => tr
.Promise("hubStart")
.Hub("hub")
.Client(c => c
.Read("read"))
.Server(s => s
.Read("read")))
)
.LocationField("LatLng")
.TitleField("Title")
.ValueField("Value")
//.Tooltip(tooltip=>tooltip
// .Content())
;
})
.Center(54.623, 13.2248)
.Zoom(8)
.Events(events => events.MarkerClick("onMarckerClick"))
.Deferred()
)