I'm trying to dynamically set the marker color based on a value from a datasource. I can't find any examples of this and can't find an event that fires that would allow me to do this dynamically. Can you point me in the right direction, please. Below is the simple map control that I'm using:
@(Html.Kendo().Map()
.Name("map")
.Center(new double[] { Model.Latitude, Model.Longitude })
.Zoom(17)
.Layers(layers =>
{
layers.Add()
.Type(MapLayerType.Tile)
.UrlTemplate("https://#= subdomain #.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png")
.Subdomains("a", "b", "c");
layers.Add()
.Type(MapLayerType.Marker)
.DataSource(dataSource => dataSource
.Read(read => read.Action("SelectBillingLocationsCoordinates", "Details", new { Id = @Model.Id }))
)
.LocationField("LatLng")
.TitleField("Name");
})
)