print preview

Vector Tiles Service: available services and data

vector_tiles_service

Vector tiles are packets of geodata that are packaged in predefined, roughly square-shaped "tiles" and transmitted over the web.
They can be used to provide stylized web maps and combine the advantages of pre-rendered raster map tiles with vector map data.

Description

As with WMTS, the data is requested by the client as a set of "tiles" corresponding to square land areas with a predefined size and position.
Vector tiles contain vector representations of data across a range of scales. Unlike raster tiles, they can adapt to the resolution of your display device and are much smaller and faster to load - especially important for mobile solutions.
In addition, vector tiles allow you to create your own cartographic style without hosting or maintaining the underlying data.
The tile architecture also allows the use of standard network mechanisms for scalability such as distributed cache systems.

As a developer, you can currently test these services free of charge until 31.12.2019 and integrate the new card into your own applications. 

 
 
 
 
 

Change display

You can change the display using predefined configurations. You can change the display according to your wishes and needs. Currently 5 layers are made available:

Settlement / Grassed Area / Hydrology / Roads / Labels / Woodland / Territory. You have the possibility to change their color and/or size (Roads and Labels) and then export (JSON file) or share your settings (using a shortlink).

If you want to edit all layers, please use the export function and edit the corresponding JSON file with a vector style editor e.g. maputnik editor.

Further information (help.geo.admin.ch)
 

Example:
To be usable on test.map.geo.admin.ch, the JSON file exported and saved on your hard disk must then be hosted on a server accessible by a URL, an example here with the following exported file:
ch.swisstopo.leichte-basiskarte-lsd.vt_v006.json

Here the hosted file URL is:
https://cms.geo.admin.ch/www.geo.admin.ch/cms_api/gl-styles/ch.swisstopo.leichte-basiskarte-lsd.vt_v006.json

To import these vector settings to test.map.geo.admin.ch, you must adapt the URL of the viewer as follows, by adding the "&bgLayer_styleUrl=" parameter followed by the URL to your JSON style file e.g. :
https://test.map.geo.admin.ch/?lang=en&bgLayer_styleUrl=https://cms.geo.admin.ch/www.geo.admin.ch/cms_api/gl-styles/ch.swisstopo.leichte-basiskarte-lsd.vt_v006.json

 
 
 
 

Available geodata

With the Vector Tiles service of the FSDI the following data are available:
Title Description Tileset Styles

Light base map (v006)

"Light base map" is a visually and content reduced base map, which represents the most relevant topographic features and names adapted to the respective zoom level. It is constructed on the basis of official data: the topographic landscape model, public transportation stops and official street registry.  tileJSON

styleJSON

preview

description

 

Openstreetmap Openmaptiles (v001) "Openstreetmap Openmaptiles " is a visually and content reduced base map based Openstreetmap and is used for the  section outside Switzerland. It represents the most relevant topographic features and names adapted to the respective zoom level. The map style description is based on the Mapbox style specification. The map uses public vector tiles as data source as obtained from openmaptiles.org on January 2019. © Data:OpenMapTiles, OpenStreetMap contributors.
tileJSON

 

License and conditions of use

  • The service is published as part of a testing phase related to the future development of the geoservices published by swisstopo. swisstopo reserves the right to alter or remove the service, in full or in part, at any time.
  • Openstreetmap Openmaptiles (v001)  

    ©: OpenMapTiles, OpenStreetMap contributors

The service and data are to be used exclusively for test purposes only.

 

System status

 
 
 
 
 
 
 
 
 
 

Portals & references

Definitions


geo.admin.ch c/o
Federal Office of Topography swisstopo
COGIS (Coordination, Geo-Information and Services)
Seftigenstrasse 264
P.O. Box
3084 Wabern
Tel.
0041 58 469 03 15
Fax
0041 58 469 04 59

E-Mail

geo.admin.ch

c/o
Federal Office of Topography swisstopo
COGIS (Coordination, Geo-Information and Services)
Seftigenstrasse 264
P.O. Box
3084 Wabern