Vector data – How to upload to Coreo projects
You can add and configure different vector map data in Coreo to use as reference layers within your surveys. Commonly this will include layers showing topographic data or site boundaries. There are two main steps to the process:
- Upload the spatial data to your project using the Coreo Admin Area (https://admin.coreo.io/).
- Configure the data to display the way you prefer in the Map Builder section.
Uploading your data
Coreo accepts both shapefile and GeoJSON formats. In this example we’ll upload a shapefile.
- First, navigate to the project you want to add the data to.
- Visit Configuration > Collections in the Build Project section
- Select Create Collection
- Now choose the relevant option from the Create Collection options. We’ll choose “Zipped Shapefile” in this case.
- Provide a name for your collection and then navigate to the relevant file on your computer.
- Coreo will then ask you to provide a Key and Value for the shapefile. The Key must be a column that contains unique values for each record. You might need to check the attribute table of the shapefile in your GIS to determine or create this before importing into Coreo.
- Once you’ve imported your shapefile, you will see it appear in the collection.
- The dialogue shown below will list all of the items in your shapefile. In this case, we have just one polygon in one item.
Formatting the appearance of your new layer
You’re now ready to customise how your data will look in the app.
- Navigate back to the Configuration menu using the side panel or breadcrumb trail at the top of your screen.
- Select the Map Builder option from the menu.
When you first arrive in the Map Builder you’ll see a globe view of the world map on the right and any layers you have to apply a style to on the left. Note: If you don’t see the layer information you expect in the left hand panel, refresh your browser.
Your Shapefile should have appeared in the Other Layers section. There are now two steps to activate and view the data.
- Firstly, select the “Enabled” tick box to activate the layer and its styling features.
- Secondly, click the Zoom to Layer icon to focus the boundary on the map. This will enable you to see your changes in real time.
Initially Visible determines whether this layer will be visible by default on first use when you install this survey in the Coreo application. Users can toggle the layer visibility on or off in the app as required and their choices then become their default.
Once you have zoomed to your Shapefile you will see something similar to the image below:
- Choose the “Primary color” swatch to select the base colour for your layer. In this example we have selected red.
In the Polygon section (highlighted below) you can now edit the features of this polygon’s appearance.
For example:
- If you just want to see the outline and no fill, in the Polygon section set the Fill Opacity to 0
- Increase the Border Width if you would like to make your polygon border more obvious.
Your data configuration is now complete.
- Use the Save Changes button to save your edits.
We will now have a look at this layer in the Coreo app.
Viewing your new map layer in the Coreo app
To view your new layer in the Coreo app, visit the relevant project and select the Layer Switcher icon.
- Scroll to the bottom of the window until you see the Map Layers section. Toggle the required layer (in this case “Redline boundary”) to be visible.
- Tap back onto the map to dismiss the Layer Switcher and your boundary will now be visible on the map.