From ea346a785dc1b3f7c156f6fc33da634e1f1a627b Mon Sep 17 00:00:00 2001 From: Chris Schlaeger Date: Tue, 12 Aug 2014 21:56:44 +0200 Subject: Adding jquery, flot and openlayers to be included with the GEM. --- misc/openlayers/examples/fusiontables.html | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 misc/openlayers/examples/fusiontables.html (limited to 'misc/openlayers/examples/fusiontables.html') diff --git a/misc/openlayers/examples/fusiontables.html b/misc/openlayers/examples/fusiontables.html new file mode 100644 index 0000000..655ff19 --- /dev/null +++ b/misc/openlayers/examples/fusiontables.html @@ -0,0 +1,35 @@ + + + + OpenLayers Example For Reading Features From Google Fusion Tables + + + + + + + + +

Reading Features From A Google Fusion Tables Table

+
+ protocol, script, fusion tables +
+

+ Demonstrates how, with a custom read method, the script protocol and GeoJSON format can be used to read features stored in a table on Google Fusion Tables. +

+
+
+

+ Google Fusion Tables can be used to store features, and access them using SQL-type commands over HTTP. Tables are accessed using an authorization key; create/update/delete of tables requires an OAuth2 token, but tables can be public, in which case a simple apikey is all that's needed to read them. Geometries can be stored in Location columns in KML format, but the default output is a JSON object with the geometry as GeoJSON. With a custom read method, this example parses the geometry for each row, storing the other columns as feature attributes. You can of course add a 'where' clause to the SQL statement or change the column names to limit the data retrieved. Point geometries can also be stored in Latitude/Longitude columns, and the script could easily be modified to use those instead. +

+

+ View the fusiontables.js + source to see how this is done. You will need to get your own apikey from Google's API Console for this to function on your domain. +

+

+ Table used. Fusion Tables Developers Guide +

+
+ + + -- cgit v1.2.3