< FacilMap < Version 1 < API

FacilMap/Version 1/API/POIs

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"));




This article is issued from Openstreetmap. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.