CFPro - ColdFusion Developer

ColdFusion Contractor, West Midlands, UK

Google Maps Plugin for Mango Blog

March 7, 2011 ·

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

[gmap:(latitude,longitude)]

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.

Tags: ColdFusion · Mango Blog

1 response

  • 1 Bret // Mar 8, 2011 at 7:24 PM

    Great plugin idea with a lot of potential. Keep expanding on this idea. You could turn this plugin into something really powerful over time.