Hi,
I have some doubts about coordinates.
How to get pixel cordinates of a lat, lng point?
I tried locationToView and locationToLayer without success ..
Here a script example:
$(
"#map"
).kendoMap({
zoom: 3,
center: [45, 10],
layers: [{
type:
"tile"
,
urlTemplate:
"http://a.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png"
,
attribution:
"© OpenStreetMap"
}],
markers: [{
location: [45, 10],
shape:
"pinTarget"
}],
pan:
function
(e) {
console.log(
'What are now marker pixel coordinates?'
)
}
});