[OpenLayers-Users] Obtaining a Marker's coordinates?? Is there
a way?
Christopher Schmidt
crschmidt at metacarta.com
Fri Nov 30 10:10:04 EST 2007
On Thu, Nov 29, 2007 at 03:50:42PM -0800, plen wrote:
>
> Hello,
>
> I have a marker that I create through something like:
>
> var mrk = new OpenLayers.Marker(lonlat, icon.clone());
>
> I add it to my marker's layer and it is displayed on the map. I am trying
> to find out how I can get the coordinates for that marker. In the Google
> Maps API, the Marker object had methods to get the latitude and longitude,
> but the OpenLayers API doesn't seem to have that.
>
> Is there a way to retrieve the geo coords for a given Marker?
marker.lonlat
http://dev.openlayers.org/docs/files/OpenLayers/Marker-js.html#OpenLayers.Marker.lonlat
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list