Upload external map layers

Updated 2 days ago

Whilst we recommend layers to be created within District Engage, layers created outside of District Engage can be uploaded to your project map. Click here for more information about creating layers within District Engage.

How to add an external layer to your map

To add external layers to a map:

  1. Create a map in the map library and save it, or open an existing map you want to edit. Click here for more info on creating project maps.

  2. To open the new or existing map, use the top-level menu to navigate to the Projects tab.

  3. Select the relevant project; this opens your project overview page.

  4. In the left-hand menu, under Content, click Map library. This shows all the maps available for this project. Select the map you would like to add a layer to.

  5. Click the Edit tab.

  6. Scroll down and click +Add new layer.

  7. Select a layer type by choosing either to upload a shape file or use a GeoJSON URL.

    1. For a Shapefile, add a Title, upload a valid Shapefile .zip file by clicking and browsing, or dragging and dropping the file into the window. See more information about this layer type further down this page.

    2. For a GeoJSON URL, add a Title, and provide a valid GeoJSON URL. If the URL does not provide valid GeoJSON the layer will not be visible on the map or an error will display when viewing the map. See more information about this layer type further down this page.

  8. Style your map layer: Note: The styling of map layers is only applicable to polygons and shapes.

    1. Adjust the Border colour and Border opacity using the colour picker and slider.

    2. Adjust the Fill colour and Fill opacity using the colour picker and slider.

    3. Adjust the Border width and Border style using the dropdown fields.

  9. Click Add layer to finish.

  10. Repeat this process until you have added all your desired layers.

  11. Click Save as draft to save the map.

image (86).png

Option 1. Use a Shapefile

A Shapefile is a format for storing geospatial data that can be added to a map as a layer. It is a standardised structure and can be recognised or generated by most mapping services.

Maps in District Engage support adding Shapefiles through uploading an existing Shapefile that has been created outside District Engage.

How to create a Shapefile

  1. Use your existing tools: If you already use a map service for interacting with geospatial or mapping data, it likely supports Shapefiles. Read the documentation or ask support for how to create a Shapefile you want to add to your map.

  2. Use Geojson: Geojson.io is an excellent free tool for creating shapefiles, the following is a very brief getting started guide, however, we recommend reading their help to fully understand the capabilities.

    1. Visit geojson.io, and start building the shape you would like to add to your map by using the toolbar on the right-hand side.

    2. Once complete, click Save then Shapefile. A .zip file of your Shapefile will be downloaded and saved to your computer.

Option 2. Use a GeoJSON URL

GeoJSON is a format for storing geospatial data that can be added to a map as a layer. It is a standardised structure and can be recognised or generated by most mapping services.

Adding GeoJSON to maps

Maps in District Engage support adding GeoJSON via a remote URL. This means the GeoJSON is hosted elsewhere, and the maps will fetch and load the data when the map is rendered on the page.

How to create GeoJSON

If you already use a map service for interacting with geospatial or mapping data, it likely supports GeoJSON. Read the documentation or ask support for how to create a GeoJSON URL for the data you want to add to your map.

Option 3. Use JSON in Layer Builder

When your external layer contains pins, and you wish to display descriptive information per individual pin on the map, we recommend you to follow the below steps instead of using the shape file or GeoJSON URL:

  1. Create a map in the map library and save it, or open an existing map you want to edit. Click here for more info on creating project maps.

  2. To open the new or existing map, use the top-level menu to navigate to the Projects tab.

  3. Select the relevant project; this opens your project overview page.

  4. In the left-hand menu, under Content, click Map library. This shows all the maps available for this project. Select the map you would like to add a layer to.

  5. Click the Edit tab.

  6. Scroll down and click +Add new layer.

  7. Select the Layer Builder layer type from the dropdown.

  8. Click Configure new map layer.

  9. This will open a lightbox window. On the right hand side of the lightbox, click the JSON tab. Paste the JSON of your pin layer in the field.

  10. Click save. The lightbox will now close. The pins have now been added to the layer.

  11. To add a title and description to each individual pin on the map, click Edit map layer. This will open the map builder lightbox. Click on an individual pin on the map and add a Title and Description in the right-hand sidebar. Click Done. Repeat this process for each pin.

  12. When you are done, click save. The lightbox will close, and the titles and descriptive text that you have added to the pins will be visible.

  13. Click Add layer.

  14. Click Save as draft to save the map and its layer(s).

image (85).png