(:title OpenLayers Map API for pmWiki:) based on GoogleMap API from [[http://www.dausha.net/GoogleMapAPI/GoogleMapAPI|Benjamin C. Wilson]] (2006) [[Cookbook:OpenLayersAPI|Cookbook on PmWiki]] [[https://github.com/padorange/ola|OLA source code on GitHub]] [-alpha version for test only-] syntax : * ola-map : define the map viewer ** ctrl : set navigation controler *** '''small''', large *** scale *** layer ** view : set render map style *** '''mapnik''' (default osm rendering) *** cyclemap (free render emphasis on cycle) *** openmapquest (free render from mapquest based on osm data, emphasing on roads) ** lat : latitude (map center) ** lon : longitude (map center) ** zoom : zoom factor (1 from 19) ** width : map width (pixels or %) ** height : map height (pixels or %) * ola-point : define marker to put on the map ** lat : latitude (marker position) ** lon : longitude (marker position) ** text : text to be display when marker was clicked (do not works) !The Map : Click on "Edit" to see the pmWiki code to embed an OSM Map (:ola-map ctrl=large,scale,layer view=cyclemap,openmapquest lat=45.686 lon=-0.337 width='100%' height='600px' zoom=12 :) (:ola-point lat=45.684297 lon=-0.321608 text='Saint-Gobain Emballage':) (:ola-point lat=45.683068 lon=-0.372881 text='Revico':) (:ola-point lat=45.716443 lon=-0.326028 text='Hennessy (Seveso 2)':) (:ola-point lat=45.666486 lon=-0.356112 text='Remy-Cointreau (Seveso 2)':) (:ola-point lat=45.656648 lon=-0.362592 text='Antargaz (Seveso 2)':) (:ola-point lat=45.689776 lon=-0.336446 text='Ancien site Onyx':) (:ola-point lat=45.689484 lon=-0.311093 text='Agence EDF':) (:ola-point lat=45.684807 lon=-0.342003 text='Station d épuration de Saint-Martin':) (:ola-point lat=45.709805 lon=-0.309420 text='Station de refoulement de Boutiers':) See [[Autruche/OSMMap?action=source|PmWiki code]].