[OSM-talk] arbitrary markers on main map
John McKerrell
john at mckerrell.net
Mon Sep 1 09:48:14 BST 2008
Funnily enough, that link you sent through should actually work and do
exactly what you want, I'm not sure why it didn't. This one does:
http://openstreetmap.org/?mlat=-36.88887&mlon=174.75006&zoom=15&layers=0B0FTF&lat=-36.88822&lon=174.7553
I don't think there's a simple way to create those links other than
just recentering the map where you want the marker, clicking on
permalink and then putting "m" in front of the lat/lon parameters.
John
On 1 Sep 2008, at 09:17, robin paulson wrote:
> now that auckland's got pretty good coverage, i've been using it for
> map
> links to send to people, rather than relying on other services. the
> problem is, it can be difficult to indicate where exactly i am showing
> them to go
>
> e.g. i sent someone directions to my house, and along with the link to
> the map, had to tell them the street name, and whereabouts on the
> street
> i was (in between street A and B). all of this is a bit clumsy, and
> relies on there being other distinguishing marks nearby. is there
> anything in openlayers that let's a user arbitrarily place a marker -
> say a bright red arrow - on a map, to highlight a point, and the
> send a
> link that includes the marker?
>
> to give a link something like:
>
> http://openstreetmap.org/?lat=-36.798&lon=174.397&zoom=15&layers=0B0FTF&mlon=-36.798&mlat=174.397
>
> where:
> mlat is the latitude of the marker, and
> mlon is the longitude of the marker?
>
> ah, looks like there is:
> http://dev.openlayers.org/releases/OpenLayers-2.6/doc/apidocs/files/OpenLayers/Marker-js.html
> from the ol docs
>
> any chance of adding this to the main map, administrators?
>
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk
More information about the talk
mailing list