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
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to