This sample includes a portlet that uses the Yahoo! Maps API to display a map of a given address. Note that in order to run this sample, you must have a Yahoo! Application ID - you can get one at https://developer.yahoo.com/wsregapp/index.php
The attached package contains two cooperating portlets: a very simple address book, and a map display portlet. The address book model fires a WPF event when the user clicks on an address; the map model listens for this event and displays the corresponding address on a map.
Here are some of the techniques illustrated in this sample:
- using the Yahoo! Map APIs
- client-side event handling
- profiling a model so it runs differently in standalone mode than it does in the portal
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 standalone, you can launch the AddressBook portlet (in samples/yahoo_map) from the Portlet Factory Designer. The maps portlet will prompt you to enter your Yahoo! Application ID (see the "Background Information" section) - when deployed to a portal, you can specify this app ID from the portlet configuration page.