Hi,
is it possible to set the pin type via datasource - as the first step?
In my example I got something like this:
In the next step, I would like to set the markers via datasource and use my own style for the markers. Is that possible?
In my second example I got something like this:
And in the css something like this:
Thanks in advance!
is it possible to set the pin type via datasource - as the first step?
In my example I got something like this:
data =[{"name": "test1", "shape":"pinTarget", "latlng":[30.268107, -97.744821]}, {"name": "test2","shape":"pin", "latlng":[40.268107, -97.744821]}];$("#map").kendoMap({ center : [ 30.268107, -97.744821 ], zoom : 3, layers : [ { type : "tile", urlTemplate : "http://#= subdomain #.tile2.opencyclemap.org/transport/#= zoom #/#= x #/#= y #.png", subdomains : [ "a", "b", "c" ], attribution : "© <a href='http://osm.org/copyright'>OpenStreetMap contributors</a>." + "Tiles courtesy of <a href='http://www.opencyclemap.org/'>Andy Allan</a>" } ,{ type: "marker", dataSource: data, locationField: "latlng", titleField: "name"}],});In the next step, I would like to set the markers via datasource and use my own style for the markers. Is that possible?
In my second example I got something like this:
data =[{"name": "test1", "shape":"pinTarget", "latlng":[30.268107, -97.744821]}, {"name": "test2","shape":"mystyle", "latlng":[40.268107, -97.744821]}];$("#map").kendoMap({ center : [ 30.268107, -97.744821 ], zoom : 3, layers : [ { type : "tile", urlTemplate : "http://#= subdomain #.tile2.opencyclemap.org/transport/#= zoom #/#= x #/#= y #.png", subdomains : [ "a", "b", "c" ], attribution : "© <a href='http://osm.org/copyright'>OpenStreetMap contributors</a>." + "Tiles courtesy of <a href='http://www.opencyclemap.org/'>Andy Allan</a>" } ,{ type: "marker", dataSource: data, locationField: "latlng", titleField: "name"}],});And in the css something like this:
.k-marker-my-style { border: solid 5px #00f; }Thanks in advance!