-
Notifications
You must be signed in to change notification settings - Fork 6
Weather plugin
cbara edited this page Mar 1, 2013
·
2 revisions
- Reference name: GoogleWeatherPlugin
- Source:
googleweatherplugin.js
- Generates Weather widgets (list items) for concepts that refer to locations.
- Promotes the maps to a interactive Google Map with a weather layer centered on the targeted coordinates with the weather overlay, in modal window.
- LDPlugin
- This plugin reacts to annotations that contain in their resource fields Geonames API calls that point to the annotated location.
- The Geonames API response is in XML format. The plugin processes this response, by extracting the
location name
, thelatitude
andlongitude
in decimal form. - A Google Map API query string is being built with the extracted information.
- One widget composed of: a button with a green map icon and the targeting location name.
- This plugin will attach the rendering logic of the widgets in the
becomeActive
event handler of each annotation that contains a Geonames call in it resource field. - Each widget is active to
click
events and will trigger a modal window with a interactive Google Map centered on the targeted location.
- On
clicking
oftaping
the widget, the plugin will generate a Google map centered in the location name. - The modal window will take a width of 70% and height of 70% of the display resolution.