Code
esriUrl_parseUrl(
"https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/3")
Output
$url
[1] "https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/3"
$scheme
[1] "https://"
$host
[1] "sampleserver1.arcgisonline.com"
$instance
[1] "ArcGIS"
$restIndicator
[1] "rest/services"
$folderPath
[1] "Demographics"
$serviceName
[1] "ESRI_Census_USA"
$serviceType
[1] "MapServer"
$featureID
[1] 3
Code
esriUrl_parseUrl(
"https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer")
Output
$url
[1] "https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer"
$scheme
[1] "https://"
$host
[1] "sampleserver1.arcgisonline.com"
$instance
[1] "ArcGIS"
$restIndicator
[1] "rest/services"
$folderPath
[1] "Demographics"
$serviceName
[1] "ESRI_Census_USA"
$serviceType
[1] "MapServer"
$featureID
integer(0)
Code
esriUrl_parseUrl(
"https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics")
Output
$url
[1] "https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics"
$scheme
[1] "https://"
$host
[1] "sampleserver1.arcgisonline.com"
$instance
[1] "ArcGIS"
$restIndicator
[1] "rest/services"
$folderPath
[1] "Demographics"
$serviceName
[1] ""
$serviceType
[1] ""
$featureID
integer(0)
Code
esriUrl_parseUrl("https://sampleserver1.arcgisonline.com/ArcGIS/rest/services")
Output
$url
[1] "https://sampleserver1.arcgisonline.com/ArcGIS/rest/services"
$scheme
[1] "https://"
$host
[1] "sampleserver1.arcgisonline.com"
$instance
[1] "ArcGIS"
$restIndicator
[1] "rest/services"
$folderPath
[1] ""
$serviceName
[1] ""
$serviceType
[1] ""
$featureID
integer(0)
Code
esriUrl_parseUrl(
"https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Landscape_Trees/FeatureServer/0/")
Output
$url
[1] "https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Landscape_Trees/FeatureServer/0/"
$scheme
[1] "https://"
$host
[1] "services.arcgis.com"
$instance
[1] "V6ZHFr6zdgNZuVG0/arcgis"
$restIndicator
[1] "rest/services"
$folderPath
[1] ""
$serviceName
[1] "Landscape_Trees"
$serviceType
[1] "FeatureServer"
$featureID
[1] 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.