Give Your Maps Some Context With Open Source Menu

Adam DuVander
May. 31 2010, 02:17AM EDT

When it comes to map mashups, there's no doubt that Google Maps leads the way. On ProgrammableWeb we list 1,971 Google Maps mashups, almost four times as many as any other API. This popularity makes utilities built on top of Google Maps especially interesting, such as this contextual menu control, which pops up a menu when the user right clicks.

Wolfgang Pichler, who wrote the control, explains how it can be used:

The result is a control that's easy for users and easy for developers, and is probably the fastest way to add reverse geocoding and directions functionality to your map (especially if it's a small map). Just include the script tag for the source code, insert [one] line in your map init function, and you'll get a right-click menu

The documentation includes examples that show how to exclude specific items from the menu. Unfortunately, there is no means to add your own items to the menu. However, with the control being open source, enterprising developers could add this functionality.

Adam DuVander Hi! I'm Developer Communications Director for SendGrid and former Executive Editor of ProgrammableWeb. I currently serve as a Contributing Editor. If you have API news, or are interested in writing for ProgrammableWeb, please contact editor@programmableweb.com Though I'm a fan of anything API-related, my particular interest is in mapping. I've published a how-to book, Map Scripting 101, to get anyone started making maps on websites. In a not-so-distant past life I wrote for Wired and Webmonkey.

Comments

Comments(1)

User HTML

  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.