Is it possible to add an interactive google map into PmWiki complete with annotated and "pinned" areas as well as links on the PmWiki page that interact with the map?
This question is answered by both the GMap and MapWiki cookbook recipes. GMap enables embedding Google Maps into a PmWiki page through a link or the definition of geodata. MapWiki enables the embedding of Google Maps, or potentially any other digital map, into a PmWiki page, using the map's provided embed code. Additionally, a MySQL database enables these individual map points to be aggregated from across the wiki, into a single map view. Useful for collective generation of multi-point maps.
There are several sites to get started. Since I am writing this more to spark the project, I don't have much more than an idea. One thing I have researched is that to take advantage of the google maps API, you must download an api key. This helps google track who has it and make sure they don't break the license agreement I think.
Some quick tutorials
Mediawiki has a working google maps extension. see the link below.
An easy means of incorporating the code to include the map API would be handy for those without the knowldege. I've just started to play with it, and as an experiment set up the google map on a bare web page and used the (:includeurl:) markup to include that page within a PmWiki page.
It seems to work fine, and the code I've been playing with for markers and overlays seems to work happily too. Des, Feb 06, 2005.
Unfortunately, neither the google map script, nor the alert box example, run when I add this markup. The page just shows the plain test of the scripts concerned. (PmWiki2.1beta20 and monobook skin used). Des, Feb 16, 2006.
There's a proble with gma-2.1.2 because it seems to ignore the default zoom level -- it works fine when I specifically set a zoom level for a map, but when I leave it out or set it to zero it shows nothing. Breyten
Does the Google Maps API recepi support the selection of KML files? I have build KML files that are on the internet and I want to see the GoogleMap + the KML file (route). I have succesfully incorporated google maps, including predefined .KML files in the PmWiki. The only thing I did was adding the (:html:) and (:htmlend:) tags which ofcourse is a dodgy solution. If you want more info email DJ -> mailto:pmwiki [snail] nldj [period] com.
Note that EnableHTML let me embedded a google map (pmwiki-2.2.35) . It's work well with the google autogenerated html (iframe + optional 'a' and 'small' tags). I replaced the '&' by '&' because pmwiki escape the & (without this modification, I got '&amp;' in the final wiki page and a not well positionned map).
Example of google autogenerated html: <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.ca/?ie=UTF8&t=m&vpsrc=0&ll=49.891235,-97.15369&spn=19.854333,37.353516&z=4&output=embed(approve links)"></iframe><br /><small><a href="http://maps.google.ca/?ie=UTF8&t=m&vpsrc=0&ll=49.891235,-97.15369&spn=19.854333,37.353516&z=4&source=embed(approve links)" style="color:#0000FF;text-align:left">Agrandir le plan</a></small>
Caroline Guénette - November 12, 2011
Profiles November 25, 2005, at 07:55 PMSmick