After looking around the web I couldn't find a Google Maps plugin for Mango Blog for easily putting maps into pages and posts. So for my first Mango Blog plugin I have started putting together a basic Google maps plugin, which I will release once I have got it working how I want it.
The initial idea is to accept the command
in the content and embed the map to replace it. (Similar to the youTube Plugin)
I am using the regular expresion:
refindnocase("\[gmap:((\+|-)?[1-9][0-9]*(\.[0-9]*)?),((\+|-)?[1-9][0-9]*(\.[0-9]*)?\])", data.content, 1, true)
So far it is working quite nicely to show my home town of Bridgnorth:
I have used this example to learn how some of the Mango Blog plugin architecture works. I may make this plugin more complex as and when I need it.