[OSM-talk] Howto add simple push pin or marker to OpenStreetMap ?

Pierre-Alain Dorange pdorange at mac.com
Tue Aug 17 16:02:42 BST 2010


Richard Weait <richard at weait.com> wrote:

> > I have seen that some people put simple pushpins on osm maps. Can't
> > find on WIKI or anywhere how to do that so please point me in the
> > right direction.
> 
> - navigate to the location and zoom that you like
> - press "permalink"
> - change "lat" to "mlat", change "lon" to "mlon"
> - save address

Note that mlat/mlon can be use indepent from lat and lon (otherwise the
marker is centered).
To help with that, you can use the "export" button (top of map), then
choose Embeddable HTML.
Then click "Add a marker to the map" and click where you want the marker
(not centered this time).

In the ouput zone you got the HTML code that can be embed in a HTML
page, but in this code you'll also find (need to know a little HTML) the
URL (href tag) that can be used directly into your browser.

Someting like that :
http://www.openstreetmap.org/?lat=45.69715&lon=-0.32055&zoom=14&layers=M
&mlat=45.70834&mlon=-0.32225

-- 
Pierre-Alain Dorange




More information about the talk mailing list