View source: R/utility_functions.R
get_unique_id_field | R Documentation |
Get the unique ID field from the layer details
get_unique_id_field(endpoint, layer_details)
endpoint |
the layer endpoint |
layer_details |
the layer details object returned by get_layer_details. |
MapServers and Feature Servers encode the unique id field differently. This function uses two methods to retrieve the ID field from the layer details. Unique IDs are used for caching.
a string defining the field that encodes the unique IDs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.