View source: R/create-service.R
create_feature_server | R Documentation |
Creates an empty FeatureServer with no additional layers.
create_feature_server(
service_name,
description = "",
crs = 3857,
capabilities = c("create", "delete", "query", "update", "editing"),
query_formats = c("json", "geojson"),
initial_extent = list(xmin = NULL, xmax = NULL, ymin = NULL, ymax = NULL),
max_record_count = 1000L,
allow_updates = TRUE,
copyright = "",
has_static_data = FALSE,
xss_prevention = xss_defaults(),
token = arc_token()
)
xss_defaults()
service_name |
Feature Service name. |
description |
default blank. The description of the feature server. |
crs |
default |
capabilities |
default full capabilities. Character vector of capabilities. |
query_formats |
default json and geojson. May be restricted by site-wide settings. |
initial_extent |
optional. A named list with element of
|
max_record_count |
default |
allow_updates |
default |
copyright |
default blank. Copyright notice to provide in the Feature Server |
has_static_data |
default |
xss_prevention |
cross-site-scripting prevention is enabled by default. See details for more. |
token |
an |
If a FeatureServer
is created successfully, a FeatureServer
object is returned
based on the newly created feature server's url.
## Not run:
set_arc_token(auth_code())
create_feature_server("My empty feature server")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.