What is a WMS?
WMS (=Web Map Service) is a geographic information server (GIS) database that contains different map layers. To use these types of maps, you need to connect to the server and choose the map layer or layers that you want to use.
Are there any requirements (e.g. CRS) for using WMS maps in Maptionnaire?
The WMS maps should be in WGS84/EPSG: 4326 or 3857.
Add it to your survey
-
Open Page settings and click New under Basemaps.
Scrollable survey? Click the map icon next to the card instead.
- Click URL and paste the server address. Use the basic URL of the WMS server, without any layers specified.
- Maptionnaire recognises the service from the address and fills in Type. If it can't tell, choose the type yourself. Click Add.
- If Type stays empty, choose WMS layer. Addresses containing
service=WMSorwmsare recognised automatically.
- If Type stays empty, choose WMS layer. Addresses containing
- The layer appears on the map straight away, and its settings open beside the map. You see your changes on the map as you make them.
- Give the layer a Name. This is the name respondents see in the legend.
- Adjust the settings and click Save:
-
If the WMS requires an API key, click the + symbol under URL Parameters. Write the parameter (e.g. access_token or api-key) in the first field, and the API key in the second one.
- Choose the layer under Layer, and specify the server type under Server type (it's usually named in the WMS URL). If you don't see the map, zoom in manually.
- If the map layer still doesn't appear, turn on Transparent tiles.
- Leave the other settings (e.g. tile format, zoom range) as they are. They're usually filled in automatically when you connect to the WMS server.
-
-
In the survey, set the default map view for the map in the survey. Preview and adjust if needed.
The layer is saved in Materials, so your team can use it in other surveys too.
I uploaded a WMS layer but can't get it to work. What's wrong?
Some of the most common problems and how to fix them:
- Check that the server URL is correct. It should not specify the specific map layer from the server that you want to use.
- Check that the WMS is in or supports the coordinate system WGS84:4326.
- Choose a map layer that you want to show. You can do this under Layers.
- Try turning on the Transparent tiles setting.
- Zoom in. Sometimes WMS servers only produce map tiles when you zoom in closer to the location on the map.
- Check with the person(s) responsible for that WMS server that the server allows web-based platforms such as Maptionnaire to use its maps. What they should be looking at are CORS settings and specifically the 'Access-Allow-Control-Origin' setting, which should be set to allow use on Maptionnaire.
- Remember, you can always contact support@maptionnaire.com for help!