Learn R Programming

toro (version 0.1.0)

add_feature_server_source: Add a FeatureService source to the map

Description

Add a FeatureService source to the map

Usage

add_feature_server_source(
  map,
  source_url,
  source_id,
  append_query_url = "/0/query?where=1=1&outFields=*&f=geojson"
)

Value

The map or map proxy object for chaining.

Arguments

map

The map or map proxy object.

source_url

The URL of the FeatureService source.

source_id

The ID for the source.

append_query_url

The query URL to append to the source URL. Default is "/0/query?where=1=1&outFields=*&f=geojson".

Examples

Run this code
# \donttest{
service_url <- paste0(
 "https://services1.arcgis.com/VwarAUbcaX64Jhub/arcgis/rest/services/",
 "World_Exclusive_Economic_Zones_Boundaries/FeatureServer"
)

 map() |>
   add_feature_server_source(service_url, "eez") |>
   add_line_layer(id = "eez_lines", source = "eez")
# }

Run the code above in your browser using DataLab