FacilMap/Version 1/API/POIs

From OpenStreetMap Wiki
< FacilMap‎ | Version 1‎ | API
Jump to navigation Jump to search

Using the POI layer from FacilMap/Version 1, you can make POIs on the map clickable. A popup will open displaying various details about the POI. FacilMap uses OpenLinkMap for this.

To add this feature to your map, be sure to load the FacilMap API:

<script type="text/javascript" src="http://api.facilmap.org/ajax-proxy/ajax-proxy.js"></script>
<script type="text/javascript" src="http://api.facilmap.org/facilmap.js"></script>

Then add the layer using the following JavaScript code:

map.addLayer(new FacilMap.Layer.Markers.OpenLinkMap("POIs"));




FacilMap OpenLinkMap.png