[pmwiki-users] Addition to OpenStreetMap API Recipe

StefCT stefct4 at gmail.com
Sun Nov 17 10:07:35 CST 2013


On 11/16/2013 06:57 PM, Petko Yotov wrote:
> 
> P.S. I strongly feel that instead of GoogleMaps my sites should use the
> free open source and open content OpenStreetMap. Unfortunately I haven't
> yet found the time to look into writing a recipe with the GMap features
> for OSMap. See however this recipe:
> 
>  http://www.pmwiki.org/wiki/Cookbook/OpenLayersAPI
> 

I've added a few lines of code to the OpenLayersAPI recipe. Now I can
simply include an OpenStreetMap with a directive like the following:

(:ola-map
link=http://www.openstreetmap.org/?mlat=40.7300&mlon=-74.0054#map=16/40.7300/-74.0054:)

Manually extracting lat/long/zoom and marker information from the URL
isn't necessary anymore with this new feature. Of course, all existing
options can still be added for customization. I think this might
facilitate the usage of this recipe a little.

I consider making this available to others as well. How should I go
about this (as it's somebody else's recipe I've been tinkering with)?

--StefCT





More information about the pmwiki-users mailing list