How can I add points/lines/areas to a map that the respondent clicks to see information and questions about those places?
When using maps as part of your questionnaire, you can highlight specific places, routes or areas on the map and attach pop-ups with information and questions to them. The respondent clicks the feature to open the pop-up. This is called a Pop-up map (formerly click maps or clickable map objects).
-
Prepare your map
To add a Pop-up map to your survey, you need a map layer that contains the features (points, lines, areas, grid cells) that the respondent should select from. You can use a shapefile, geoJSON or WFS layer or create the map layer from scratch by using the Create a map function.
If you want each feature to include information about it, add that data to the attributes of the map file. If each feature should have an associated image, upload them to Materials and add the generated URLs ("Direct link to item") to the layer's attributes. If you have many images, contact support@maptionnaire.com and we can do this for you.
-
Add the map layer to the survey
Go to the map page where you want to add the pop-up map. Click Page settings above the page and, under Map overlays, click Add Layer or Image to choose the layer from your Materials, or New to upload it.
-
Under ID key, select the attribute that you want to use to identify specific map features in the data. The ID should contain only numbers. If the layer does not contain suitable attributes, Maptionnaire adds a numeric field called mpt_id to the map layer's file and selects it as the ID key.
-
Decide how the features should be visualized (color, size, labels, styling by attribute...).
-
Add the Pop-up map element from the element library.
-
Select the map layer with the features.
-
Write the question and determine other element settings as needed.
-
Click Create pop-up.
-
Add the content and questions to the pop-up. You can also pull any data from the attribute table columns. For example, here we have added data about each park by adding a Heading element and the name of the column in the attribute table.
You can add content from the attribute table (e.g. different information about the national parks) by using the Heading and Text elements. Enter the column name in {curly brackets}.
You can also add images in this way – contact support@maptionnaire.com for further info. Then add each URL to the attribute table (or properties/layer info) and make a note of the name of that column. When editing the pop-up, add the Image element and write the name of the column (e.g. "Photos") under Data key for url.
-
Test in Preview.
How do I analyze/visualize information collected with a pop-up map?
Not sure this is the right map question? See Which map question should I use?.