Okay, this may be a goofy question, but:
When I log in to OSM, there is an arrow marker to my home location.
Is there a way to present a permalink which will include such an arrow? If I post an OSM link and say it is on Whatever Street - which is five miles long - an arrow marker would be handy.
I don’t think you can do it as a permalink, though may be wrong. You can get some embeddable HTML which does it.
Click the Export tab (at say http://www.openstreetmap.org/) and select embeddable HTML which would give you the option to add a marker, and result in something like:
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"
src="http://www.openstreetmap.org/export/embed.html?bbox=1.13434,51.83296,1.14029,51.83666&layer=osmarender&marker=51.83513,1.13692"
style="border: 1px solid black"></iframe><br /><small>
<a href="http://www.openstreetmap.org/?lat=51.834810000000004&lon=1.137315&zoom=16&layers=0B00FFFTT&mlat=51.83513&mlon=1.13692">
View Larger Map</a></small>
Edit: I am wrong.
http://www.openstreetmap.org/?mlat=51.83485&mlon=1.13653&zoom=17
The view should centre on mlat and mlon unless you also specify lat and lon. I tried just cutting the URL out of the above example. That doesn’t show the marker because of the layers value, but changing it to
&layers=0B00FTF
seemed to work.
Hi,
In a permalink you can see lat= and lon=
Change them to mlat and mlon.
-Jukka-
For something you don’t want to do but is cool. Take a look at http://openstreetmap.org/browse/way/17398486 notice that the area is highlighted…
It’s pretty easy todo:
var osm_layer = new OpenLayers.Layer.GML("OSM", "http://openstreetmap.org/browse/way/17398486", {
format: OpenLayers.Format.OSM,
projection: new OpenLayers.Projection("EPSG:4326")
});
map.addLayer(osm_layer);
osm_layer.loadGML();
osm_layer.loaded = true;