-
Notifications
You must be signed in to change notification settings - Fork 6
Map for TV plugin
Cristian Bara edited this page Jul 8, 2013
·
1 revision
- Reference name: GeoNamesMapForTVPlugin
- Code Source:
geonamesfortvplugin.coffee
- Compiled Source:
geonamesfortvplugin.js
-
Generates Map widgets for concepts that refer to locations.
-
It's expanded widget has a fixed dimension of 600px X 600px
-
The expanded widget contains 1 tab:
- Map tab (green) creates a Google static map centered on the annotated geonames reference
- LDPlugin, Google API
- This plugin reacts to annotations that contain in their resource fields Geonames API calls that point to the annotated location.
- 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.
- Simple widget composed of: a button with a green map icon and the targeting location name.
- Expanded widget composed of: a video overlaying panel containing 3 tabs:
- Map tab (green)
- Map tab (green)
- 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 binds activate events to
click
events and will trigger a widget expansion - Expanded widgets close when 'clicking' the close (X) icon at the top left hand side of the expanded widget
- Each widget binds activate events to
tap
events and will trigger a widget expansion - Expanded widgets close when 'tapping' the close (X) icon at the top left hand side of the expanded widget
- Each widget binds activate events to 'OK' events and will trigger a widget expansion
- Expanded widgets close when pressing the 'BACK' button
- Map tab (green) selected by default
- 'UP' and 'DOWN' arrow buttons - zoom in and out, respectively, on the current map center point
- Map tab (green) selected by default