Prototype 2
Purpose
Test Google Maps API features for rendering geographical regions and highlighting selections. Perform basic map integration using Google Maps API and the previous basic technical infrastructure.
Specific technical details of this prototype:
- Embed a Google Maps Map object on web page.
- Render Keyhole Markup Language region data file Map.
- Subscribe to map click events.
- Respond to event emitted when user click on a region (defined in UK_Districts.kmz).
- Uniquely identify clicked region through inspection of KML Feature Placemark ID property. _The naming convention used in UK_Districts.kmz data seems be 'ID_00000' for region 0, 'ID_00001' for region 1, 'ID00002' for region 2 etc. etc.
- Create sample PHP script to assert capabillity of server side parsing and pre-processing of KML data - needed for dynamically generating new map overlays in some highlighted colour containing only the polygons for some pecific placemark (the region).
- When new region is selected, evict old KML data (previous selection highlight), then generate new KML data (server side using PHP script) and feed it back into the google maps engine to highlight new selection.
Note: we should also be able to use this technique for shading the entire map with individual colour gradients for each region - we shall investigate this further in next prototype.
Description
This prototype is primarily a test of using the Google Maps API for loading Keyhole Markup Language map data, interaction with the map and generating new KML data files on the fly for highlighting individual regions.
Application functionallity is identical to previous prototype, except for the added mapping interface for picking regions.
Note: Map regions are only highlighted to indicate selection. The highlight colour does not update in response to entering environmental settings or selecting instruments.
Initializing application...
Region
Click on map to select a region to inspect. Each region on the map has an id which can be mapped directly to the specific region database index.
Selected region index from list
Instruments
An instrument is an action that can be implemented to influence the specific region. The value entered on the instrument node is automatically taken into account when computing the consequences.
Instrument
Environmental Settings
These widgets display the evidence entered on the 'environmental setting' variables. The values are loaded
from database each time the user picks a region.
User can manually modify these variables and the consequence of changes are computed immediately.
Environmental Setting 1
Environmental Setting 2
Environmental Setting 3
Consequence
Monitors for indicator nodes. Inspect consequences.
Benefits A
Benefits B