Skip to content
Cristian Bara edited this page Jul 8, 2013 · 1 revision
  • Reference name: GeoNamesMapForTVPlugin
  • Code Source: geonamesfortvplugin.coffee
  • Compiled Source: geonamesfortvplugin.js

Features

  • 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

Dependencies

  • LDPlugin, Google API

Web API connections

  • 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, the latitude and longitude in decimal form.
  • A Google Map API query string is being built with the extracted information.

Widgets

  • Simple widget composed of: a button with a green map icon and the targeting location name. simple map widget
  • Expanded widget composed of: a video overlaying panel containing 3 tabs:
    • Map tab (green)
      • expanded map widget - the map tab

Events

  • 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.

Mouse interaction

  • 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

Touch interaction

  • 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

Google TV remote control interaction

  • 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