Skip to main content link. Accesskey S
  • Log In
  • Help
  • IBM Logo
  • WebSphere Portal Family wiki
  • All Wikis
  • All Forums
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • IBM Redbooks
Community Articles Product Documentation Learning Center IBM Redbooks This category IBM Redbooks: Building a Sample Website Using IBM Web Content Manager 7.0 IBM Redbooks: Building and Implementing a Social Portal IBM Redbooks: Developing Exceptional Multi-Channel Web Experiences V7: IBM Web Content Manager Product Documentation V7: IBM WebSphere Portal Enable for z/OS Product Documentation V7: IBM WebSphere Portal Express Product Documentation V7: WebSphere Portal Product Documentation V8: IBM Web Content Manager Product Documentation V8: IBM WebSphere Portal Express Product Documentation V8: IBM WebSphere Portal Product Documentation (includes z/OS) Custom Search Scope...
Search
Community Articles > IBM Web Content Manager > Best Practices for Web Content Manager > Google Maps Event Listener Portlet
  • New Article
  • Share Show Menu▼
  • Subscribe Show Menu▼

About the Original Author

IBM contributorKonrad Wulf
Contribution Summary:
  • Articles authored: 7
  • Articles edited: 3
  • Comments Posted: 10

Recent articles by this author

The Ajax Proxy in Portal

An overview of the AjaxProxy component in WebSphere Portal

IBM Portal Enhanced Event Handling 7.0

The official download bundle IBM Portal Enhanced Event Handling 7.0 enables you to better and more flexible connect JSR286 portlets in IBM WebSphere Portal. It makes it easier for administrators use events between portlets. It allows you to create situative applications by combining cooperative ...

Linking Files within a Portlet JSP

Don't use relative URLs in portlet JSPs, if you want to reference a file in your portlet web app. They will be interpreted relative to the portal url by the browser and thus will not point to the resource you intend to embed in your markup.

Troubleshooting the Ajax Proxy in Portal

This article describes what can be done to debug the Ajax Proxy in WebSphere Portal 6.1.5 and above

Google Maps Event Listener Portlet

This article is about a lean Portlet API wrapper around the Google Maps API, especially designed for listening to JSR 286 events triggered by other portlets. The sample application is provided as download, including source code.

Community articleGoogle Maps Event Listener Portlet

Added by Konrad Wulf | Edited by IBM contributor Konrad Wulf on September 23, 2010 | Version 7
expanded Abstract
collapsed Abstract
No abstract provided.
Tags: eventing, Maps, sample portlet
[DRAFT - download not yet available]

When we did our Event Payload Transformation Portlet, we were looking for some ready-to-use jsr-286 portlets in the public domain, that made use of the portlet API's eventing feature. Unfortunately, there was very little. Moreover, the examples I found were a) either targeted at a specific portal runtime and used more then just the standard portlet api provided by that portal runtime, or b) were unnecessarily using a lot of other frameworks on top.
 
In the case of a Google Maps Portlet, I felt that all that is really needed is a thin portlet API wrapper around the Google JavaScript API. And a sandboxing of the JavaScript code via an IFrame.
 
screenshot of google maps event listener portlet in action
 
So here it is a simple, yet effective Google Maps Event Listener Portlet, with the following features:
- support of all request types ( GeoCoding, Directions, Elevations) and a preference switch for StreetView, reflecting one-to-one the Google Maps API 3.0 as documented at http://code.google.com/apis/maps/documentation/javascript/services.html
- both fine-grained query data objects and simple strings as event payload for each request type
- source code included for own customizations
- compiled with java 1.5, to run e.g. in WebSPhere Portal 6.1 and above.
- use at your own risk - no warranty supplied
 
The String payloads can be directly wired in some portal runtimes, ignoring the qnames, e.g. in WebSpehere Portal. For the self-defined data objects in the payload, other portlets on the page will need to explicitly be adopted to throw the corresponding events. Or you can plug-in the payload transformation portlet inbetween, which I shall try to publish soon...
expanded Attachments (1)
collapsed Attachments (1)
File TypeSizeFile NameCreated On
image/jpeg 88 KB screenshot-maps-portlet.jpg 9/23/10 9:49 AM
expanded Versions (23)
collapsed Versions (23)
Version Comparison     
VersionDateChanged by              Summary of changes
23May 9, 2012 9:33:49 AMKonrad Wulf  IBM contributoradded link to APAR
22Jan 25, 2012 6:29:31 AMKonrad Wulf  IBM contributoradded info about expected APAR PM56153
21Sep 29, 2011 7:58:35 AMKonrad Wulf  IBM contributor
20Mar 1, 2011 8:40:55 AMKonrad Wulf  IBM contributorMinor Change
19Mar 1, 2011 8:38:03 AMKonrad Wulf  IBM contributorMinor Change
18Mar 1, 2011 8:32:55 AMKonrad Wulf  IBM contributorMinor Change
16Mar 1, 2011 8:29:53 AMKonrad Wulf  IBM contributor
15Oct 22, 2010 4:00:21 AMKonrad Wulf  IBM contributoradded abstract
15Oct 22, 2010 4:00:21 AMKonrad Wulf  IBM contributoradded abstract
14Sep 30, 2010 12:12:26 PMKonrad Wulf  IBM contributor
13Sep 30, 2010 3:03:10 AMKonrad Wulf  IBM contributor
12Sep 29, 2010 9:04:54 AMDon Naro  IBM contributor
11Sep 29, 2010 5:04:19 AMKonrad Wulf  IBM contributor
10Sep 28, 2010 4:20:47 PMKonrad Wulf  IBM contributor
9Sep 28, 2010 3:55:51 PMKonrad Wulf  IBM contributor
8Sep 23, 2010 9:49:50 AMKonrad Wulf  IBM contributor
This version (7)Sep 23, 2010 9:48:40 AMKonrad Wulf  IBM contributor
6Sep 23, 2010 9:47:22 AMKonrad Wulf  IBM contributor
5Sep 23, 2010 9:45:57 AMKonrad Wulf  IBM contributor
4Sep 23, 2010 9:21:32 AMKonrad Wulf  IBM contributor
3Sep 23, 2010 8:33:44 AMKonrad Wulf  IBM contributor
2Sep 23, 2010 8:30:45 AMKonrad Wulf  IBM contributor
1Sep 23, 2010 8:24:55 AMKonrad Wulf  IBM contributor
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedHelpAbout
  • IBM Collaboration Solutions wikis
  • IBM developerWorks
  • IBM Software support
  • Twitter LinkIBMSocialBizUX on Twitter
  • FacebookIBMSocialBizUX on Facebook
  • ForumsLotus product forums
  • BlogsIBM Social Business UX blog
  • Community LinkIBM Collaboration Solutions
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Accessibility
  • IBM Terms of use
  • Wiki terms of use