1 of 23

Create thematic maps for map.geo.admin.ch

using google fusion tables and KML Import function of map.geo.admin.ch

2 of 23

What you get: YOUR data shown as in this example

3 of 23

What you need

  • tabular data (CSV,XLS) with at least one column with a location reference (eg canton name)
  • reference file (KML,SHP etc) eg cantons.kml
  • a google account

4 of 23

Prepare your THEMATIC data

Google Spreadsheet with an id (eg “code”)

5 of 23

Prepare your GEOREFERENCE data

Google FUSION table (import your SHP or KML file) with an identical id (“code”)

For your convenience we made the following reference table available for you (make a copy in google fusion)

6 of 23

Import THEMATIC Data to fusion tables

in google drive:

- create-> fusion table

Select the THEMATIC spreadsheet

- import it, define a table name (eg Statistics)

- allow exports

7 of 23

Add the GEOREFERENCE to the THEMATIC fusion table

in the newly created fusion table (e.g statistics)

use the MERGE function

8 of 23

...select the georeference table...

9 of 23

use the matching id’s (eg code)

- View the merged table at the of the dialog

- change the name of the fusion table name “merge of “x” and “y” since it will be part of the pop up

10 of 23

Merged fusion table switch to “map of geometry” view

11 of 23

Define the COLOR of your data:

12 of 23

Result:

13 of 23

Define the POPUP info

14 of 23

Result: (Tipp using filter you can filter your data)

15 of 23

Export your data as KML...

16 of 23

Import the KML into map.geo.admin.ch

17 of 23

Share the KML to your users

A) Send it by mail and add the instruction on how to ad a local file: http://help.geo.admin.ch/?id=64

B) Save the KML on a webspace and embed the KML as URL as shown in http://help.geo.admin.ch/?id=64 and share the map as explained in http://help.geo.admin.ch/?id=52 : map.geo.admin.ch will load with your data

C) embed it in your website using the API as explained in http://api3.geo.admin.ch/examples/geoadmin_kml.html of our api3.geo.admin.ch documentation

18 of 23

Bugfixing

The kml generated by fusion table does sometimes not export correct color schemes.

in Fusion in Map.geo.admin.ch/google maps

19 of 23

Import kml into https://www.google.com/mymaps

  1. https://www.google.com/mymaps
  2. Create new map
  3. Import the faulty KML

1

2 import KML

3

20 of 23

Correct KML I

Open individual Styles

21 of 23

Correct KML II

Style by data column

Choose column

22 of 23

Correct KML IIII

Set Color

Set transparency

For each polygon:

23 of 23

Export corrected KML

2)

4)

3)