[OSM-talk] Custom OpenStreetMaps ?
Simon Wood
simon at mungewell.org
Mon Jul 20 18:27:57 BST 2009
On Mon, 20 Jul 2009 16:57:17 +0200
Etric Celine <etricceline at googlemail.com> wrote:
> The only way to create it at the moment is to use OpenLayers on your own
> webspace.
>
The Google 'My Map' looks quite impressive, and as Etric notes there is no simple (as yet) way to do this. Given that OpenLayers can render out GPX/KMLs/OSMs/etc then this is technically possible.... maybe one could even abuse potlatch into being the editor for such a project with resultant OSM saved locally.
If you are simply wanting to hi-light a node (which already exists in the OSM database) then this can be overlaid on top of the OSM slippy map with something like:
http://www.openstreetmap.org/?node=272924312
You can also place marker at a random point directly on the map:
http://wiki.openstreetmap.org/wiki/Browsing#Adding_a_Marker
By far the best way is to implement your own slippy map as you can control exactly what is displayed (and how), place things in layers, add pop-ups, etc. All it really requires is some web hosting and a few lines of JavaScript to be added to a page.
It takes a little pain to get some thing going, but even a java-script ignoramus like me can handle it.
For examples, see:
http://wiki.openstreetmap.org/wiki/OpenLayers_Simple_Example
http://wiki.openstreetmap.org/wiki/OpenLayers_Marker_Example
http://wiki.openstreetmap.org/wiki/Openlayers_Track_example
There is also the Static Map API under development which lets you place items on a map image via parameters passed in the URL (see http://dev.openstreetmap.org/~pafciu17/).
Cheers,
Mungewell.
More information about the talk
mailing list