Sgvizler has moved to github. This site and its repository will no longer be maintained.
wiki:Sgvizler/Chart/GoogleVisualizationMap

This chart and its examples are implemented using Sgvizler 0.6, for version 0.5 see Sgvizler/0.5/DesigningQueries.

Google Map

Draws a map with a set of locations pinned on it.

Chart ID
google.visualization.Map
External reference
 https://developers.google.com/chart/interactive/docs/gallery/map
Other similiar charts
Sgvizler/Chart/SgvizlerVisualizationMap
Sgvizler/Chart/SgvizlerVisualizationMapWKT

Query result set format

Either

2--3 columns:

  1. Lat
    Datatype: Number
  2. Long
    Datatype: Number
  3. Label for the location
    Datatype: String

or

1--2 columns:

  1. Addrees
    Datatype: String
  2. Label of the location
    Datatype: String

The last column is optional is both cases.

See  Google's page on this chart for more details.

Chart options

See  Google's page on this chart for all available options.

See Sgvizler/Using, or the example(s) below, for how to set options.

Live Example

Query: Plot things that are north of 72.5 degrees north.

HTML

<div id="ex"
   data-sgvizler-endpoint="http://sws.ifi.uio.no/sparql/npd"
   data-sgvizler-query="
        SELECT ?lat ?long ?name
        { ?url npdv:nsDecDeg ?lat ; 
               npdv:ewDecDeg ?long ; 
               npdv:name ?name ; 
        FILTER (?lat > 72.5) }"
   data-sgvizler-chart="google.visualization.Map"
   style="width:400px; height:265px; border:1px solid black; display: inline-block;"></div>

Result

The result of the HTML above (left), and a google.visualization.Table rendering of the same query (right).


Notes

See Sgvizler/Setup for how Sgvizler is setup on this site.

Note that the query and visualization is ment to show the use of Sgvizler, and may not be the most appropriate way of illustrating this result set.

Feedback

Tickets

No results

User Examples and Comments

Users, please insert (links to) other examples of usage of this Sgvizler chart, or relevant comments here.