This sample includes a portlet that uses the Google Map API. In order to run this sample you must have a Google Map API Key. You can register for your API Key here:
This sample contains a portlet with a simple input field and map display. The map display is listening for the onsubmit event to trigger it to read the address value and locate the valid address on the map.
Here are some of the techniques illustrated in this sample:
- basics of using the Google Map APIs
- adding markers and controls to the map.
Notes on running the sample and prerequisites
Import the attached zip file into your project using the Import WebSphere Portlet Factory Archive command. To run the sample you must first copy your Google Map API Key into the Variable builder named, MapKey
. Otherwise you will get a page that will display a link to the Google registration site. Once the key has been saved you can run the model as standalone or deploy onto your Portal Server and add it to a Portal Page.