One of the benefits of EasyTerritory is the users’ ability, through the REST API, to find the nearest point from a given latitude and longitude location . This can be done using the Project Points Plugin. Users can also use the plugin to create a layer in your EasyTerritory catalog that is based on your record point data.
Step 1: Creating the Source Project
The first step in setting up a ProjectPointsPlugin is to create the source project. Users will simply upload their records in an EasyTerritory project and the system will geocode and pin the records on the map.
Next, save the project and copy the project ID to your clipboard. You can also get the project ID by going to admin > projects.
Step 2: Configuring the plugin
Go to admin > settings and click ‘+item’
Next, populate the following input values in the plugin configuration, entering your Project GUID in the Project ID input field and save the configuration.
Step 3: Running the plugin
Go back to the map and save your project again. Make sure you flag ‘run project plugin’.
Step 4: Creating a layer in the catalog
In order to view the uploaded records in multiple projects you need to create a layer. Go to admin > catalog and click the + icon.
When the ‘New Layer’ dialogue opens select your desired layer type.
Next, in the ‘–select MDN layer–‘ dropdown, select ‘ProjectPointLayer’ and click ‘Add’
Step 5: Configure Layer
Set the desired settings in the layer configuration:
If you have configured multiple Project Points Plugins and you want to limit the layer to just the points from a specific project, set the ‘Where Clause’ property to filter on your project’s ID. For example- projectId=’ProjectGuidHere‘
Step 6: Add Layer to Map
Select a new or existing project and open the rolodex. In the catalog dialogue select your the layer you created and add it to your map.