Is it possible to get position inside the OpenLayers container from a lat/long point?
Google Maps has something like this:
var markerOffset = map.fromLatLngToDivPixel(marker.getLatLng());
Can I do the same thing in OpenLayers?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
See the
getPixelFromLonLat[1] method from map object.1 – http://dev.openlayers.org/docs/files/OpenLayers/Map-js.html#OpenLayers.Map.getPixelFromLonLat