68. Skip to content

68. Adding a Park Layer to the "Add Site" Form

This guide will help you fetch the park name from a spatial layer on the "Add Site" form, following the steps outlined below:

Inline image

68.1 Step 1: Upload the Layer

As a superuser, navigate to the layer upload page at /upload-spatial-layer/ to upload your shapefiles. When prompted, give the layer an appropriate name based on your needs.

Inline image

After uploading, wait until the process is completed. The upload status will change to "Success" once it's finished.

68.2 Step 2: Select the Layer in Site Settings

Next, go to the admin page and select Site Setting by visiting /admin/bims/sitesetting/. Click on the first setting that appears.

Scroll down to find the Park Layer dropdown, and choose the layer you just uploaded.

68.3 Step 3: Set the Park Attribute Key

Set the Park Attribute Key to specify the attribute you want to use when selecting park names from the layer’s properties.

Once all these settings are configured, click Save.

Inline image

Once all these settings are configured, click Save.