OpenStreetMap

OpenLinkMap layer in FacilMap

Posted by Candid Dauth on 4 January 2011 in English (English).

With FacilMap (facilmap.org, Wiki), I try to create a map that has all the features of Google Maps but uses OpenStreetMap layers.

For a long time, I’ve wanted to implement something similar to the relatively new Google Maps feature where you can click on POIs (such as companies or restaurants) and a popup displaying details opens.

Now I’ve come accross OpenLinkMap (olm.openstreetmap.de, Wiki), which seems to do exactly this. So I’ve created an OpenLayers layer for it and added it to the Beta version of FacilMap available on beta.facilmap.org. On zoom levels >= 13, you’ll see these transparent dark-blue circles around some POIs. Click on them and a popup appears with some information about the POI.

At the moment, OpenLinkMap seems to only contain POIs that have either a telephone number, a website or a Wikipedia article. Hopefully, in the future other POIs will be included as well so that one can see their address and opening hours.

If you want to include the OpenLinkMap layer into your OpenLayers map, include the FacilMap API JavaScript into your website:
<script type="text/javascript" src="http://beta.facilmap.org/api/facilmap.js"></script>
(Once the OpenLinkMap layer is considered stable, it will be added to the stable FacilMap API on http://api.facilmap.org/facilmap.js.)

Then add the layer to your map using the following code:
map.addLayer(new FacilMap.Layer.Markers.OpenLinkMap("OpenLinkMap"));

This feature is documented on http://wiki.openstreetmap.org/wiki/FacilMap/API/POIs.

Comment from compdude on 5 January 2011 at 04:17

This would be really cool if we had this feature in OSM! If only i had some programming experience, then i'd be able to help you.

Comment from Aubanel on 5 January 2011 at 09:39

Awesome ! Please continue this effort, it brings a big additional value to OSM. Just wondering, do you think it would be possible to have a rule mechanis (like the style sheets for the map) to determine what to print in the bubles and how to print it ?

Comment from Candid Dauth on 5 January 2011 at 16:32

This is something that you have to suggest to the author of OpenLinkMap, as I am only using its data.

Comment from Strash on 6 January 2011 at 07:10

Not being able to clic on POI (and also easy routing) is the only reason I don't use OSM for my daily map use. Please improve that and include it on the main OSM map !

Comment from Djavan Fagundes on 6 January 2011 at 14:25

Wow! This is very cool! Congratulations.

Comment from Sanderd17 on 6 January 2011 at 14:47

This must be in on the main page (once it's stable). together with routing, it's just what I miss on the main page.

Comment from Sensei Marc on 8 January 2011 at 14:59

Very nice, please consider an overlay for marine use. Such as OpenSeaMap.
Thanks

Comment from Candid Dauth on 8 January 2011 at 17:40

Added a feature request for OpenSeaMap layer on http://bugs.cdauth.eu/index.php?do=details&task_id=59


Login to leave a comment