My map takes up 100% width and height of the browser screen.. I have a draggable div that is super imposed over the map, I am capturing this divs position using offset()
; to get the pixel top
and left
values currently.
My goals would be to convert these values to latitude
and longitude
... Could something like this be possible?
Cam,
So elem1 and elem2 are html element that are positioned on or over the view?
Yes, I just used short hand variables. It is a draggable div element directly over the full screened map.
Cam,
The toMap method is expecting an object with x and y.
view.toMap({x:ktop,y:ktlft});
Try that