A hosted map tile layer (item) can be used to manage the item properties and the settings for the corresponding map tile service. A hosted map tile layer (item) contains content properties such as name and description that describe the item resource in a portal, and data service properties such as source and URL for the map tile service and the source feature service it was derived from.
You can use the item properties to:
- Update the metadata for the hosted layer such as the name, description, and terms of use.
- Make an item more discoverable in a portal.
- Include important terms of use or credits information.
- Find data service information such as the URL endpoint.
- Change the sharing and security settings.
How to manage a hosted map tile layer (item)
When you create a new data service, the hosted layer and data service sharing level (privacy setting) is set to Owner. The item and data service are only available to you. This setting requires that applications provide a valid access token to authenticate requests to view the item or to access the data service.
The steps to change the sharing properties are:
-
Sign into a data management tool with your ArcGIS account:
- Go to ArcGIS.com and sign in to your portal (ArcGIS Location Platform or ArcGIS Online)
- ArcGIS Enterprise portal (ArcGIS Enterprise)
- Find the item.
- Use the item page to change the item properties.
Access an item page
You can manage the properties of a hosted layer by accessing the item page in a portal. If you are the owner of the item, you can use the item page to update the properties.
https://{portal}/home/item.html?{id}
Example: https://www.arcgis.com/home/item.html?id=883cedb8c9fe4524b64d47666ed234a7
Content properties
The content properties of a hosted layer (item) describe the resource in a portal. These properties uniquely define a data service and allow it to be discoverable in a portal. As an owner, you can set properties such as the name, description, tags, thumbnail, and terms of use to provide details about the underlying data service. Other properties such as id, type, created date, and updated date are read-only and are maintained by the system.
Examples of general properties include the following:
- *ID: The unique identifier for the item.
- *Type: The type of hosted layer.
- *Item created: Date the item was created.
- *Item updated: Date the item was updated.
- *View count: Number of times the item page was viewed.
- *Owner: Name of the owner or publisher of the data.
- Name: The name of the hosted layer.
- Description: Text that describes the layer, what data it contains, and what it is used for.
- Terms of use: Description of usage restrictions for the data.
- Tags: Search text used to find an item in a portal.
- Credits: Attribution for the data.
- Terms of use: The terms and usage restrictions.
*Read-only properties
Data service properties
The service properties of a hosted layer (item) provide information about the underlying data service. For example, it contains the layers, source, and service URL. These are read-only but are useful when you need to find the URL for the underlying data service and layers.
Examples of service properties include the following:
- *Layers: Access to other layers if present.
- *Source: The type of data service (feature service, vector tile service, map service).
- *Size: The size of the data in KB.
- *URL: The URL used to access the layer in the data service.
*Read-only properties
Code examples
You can use data management tools to get the properties of a hosted map tile layer (item) or you can use the ArcGIS REST APIs. The following examples illustrate how to programmatically get the properties of a map tile layer (item) and map tile service.
Get item properties
To access the map tile layer item properties directly, use the REST API with the item ID. The example below returns the item properties and values for a map tile layer (item).
Request
https://www.arcgis.com/sharing/rest/content/items/366d13d521b844119c9052758b33afc9?f=json&token={access_token}
Response
{
"id": "366d13d521b844119c9052758b33afc9",
"owner": "esri_devlabs",
"orgId": "GVgbJbqm8hXASVYi",
"created": 1691516047000,
"modified": 1691516064000,
"guid": null,
"name": "Santa_Monica_Mountains_Parcels",
"title": "Santa Monica Mountains Parcels Styled ITL",
"type": "Map Service",
"typeKeywords": [
"ArcGIS Server",
"Data",
"Map Service",
"Service",
"Singlelayer",
"WMTS",
"Hosted Service"
],
"description": "Feature layer generated from running the Find Existing Locations solutions for LA County Parcels.<div><i><u>Expression<\/u> LA County Parcels intersects Boundary <\/i><\/div>",
"tags": ["data"],
"snippet": "Feature layer generated from Find Existing Locations",
"thumbnail": "thumbnail/ago_downloaded.png",
"documentation": null,
"extent": [
[
-118.9447030492532,
33.96210762649325
],
[
-118.34289092432702,
34.19379615313072
]
],
"categories": [],
"spatialReference": "102100",
"accessInformation": null,
"licenseInfo": null,
"culture": "en-us",
"properties": {
"jobUrl": "https://analysis3.arcgis.com/arcgis/rest/services/tasks/GPServer/FindExistingLocations/jobs/jeebbcea19b5a4fb7b1350496f621cb29",
"jobType": "GPServer",
"jobId": "jeebbcea19b5a4fb7b1350496f621cb29",
"jobStatus": "completed"
},
"advancedSettings": null,
"url": "https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Santa_Monica_Mountains_Parcels_Styled_ITL/MapServer",
"proxyFilter": null,
"access": "public",
"size": 22556593,
"subInfo": 0,
"appCategories": [],
"industries": [],
"languages": [],
"largeThumbnail": null,
"banner": null,
"screenshots": [],
"listed": false,
"commentsEnabled": true,
"numComments": 0,
"numRatings": 0,
"avgRating": 0,
"numViews": 7,
"scoreCompleteness": 55,
"groupDesignations": null,
"tokenExpirationDate": -1,
"lastViewed": 1694041200000
}
Get map tile service properties
If you want to access the map tile service properties directly, you can do so by using the REST API Map Service endpoint. The example below returns the service properties and values for a hosted map tile service in ArcGIS.
Request
https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Santa_Monica_Mountains_Parcels_Styled_ITL/MapServer?token={access_token}
Response
{
"id" : 2352,
"name" : "Santa_Monica_Mountains_Parcels_Styled_ITL",
"server" : "GVgbJbqm8hXASVYi",
"ownerUserName" : "esri_devlabs",
"serviceDescription" : "Feature layer generated from running the Find Existing Locations solutions for LA County Parcels.\u003cdiv\u003e\u003ci\u003e\u003cu\u003eExpression\u003c/u\u003e LA County Parcels intersects Boundary \u003c/i\u003e\u003c/div\u003e",
"mapName" : "Santa_Monica_Mountains_Parcels_Styled_ITL",
"description" : "Feature layer generated from running the Find Existing Locations solutions for LA County Parcels.\u003cdiv\u003e\u003ci\u003e\u003cu\u003eExpression\u003c/u\u003e LA County Parcels intersects Boundary \u003c/i\u003e\u003c/div\u003e",
"abstract" : "Feature layer generated from running the Find Existing Locations solutions for LA County Parcels.\u003cdiv\u003e\u003ci\u003e\u003cu\u003eExpression\u003c/u\u003e LA County Parcels intersects Boundary \u003c/i\u003e\u003c/div\u003e",
"metadataLink" : "",
"keywords" : [
"data"
],
"copyrightText" : "",
"layers" : [
{
"id" : 0,
"name" : "Santa_Monica_Mountains_Parcels_Styled_ITL",
"parentLayerId" : -1,
"defaultVisibility" : true,
"subLayerIds" : null,
"minScale" : 577791,
"maxScale" : 0,
"type" : "Feature Layer",
"geometryType" : "esriGeometryPolygon"
}
],
"tables" : [],
"spatialReference" : {
"wkid" : 102100,
"latestWkid" : 3857
},
"singleFusedMapCache" : true,
"tileInfo" : {"rows":256,"cols":256,"dpi":96,"preciseDpi":96,"format":"PNG32","storageFormat":"esriMapCacheStorageModeExploded","packetSize":128,"compressionQuality":0,"antialiasing":true,"origin":{"x":-20037508.342787,"y":20037508.342787},"spatialReference":{"wkid":102100,"latestWkid":3857},"lods":[{"level":0,"resolution":156543.033928,"scale":591657527.591555},{"level":1,"resolution":78271.5169639999,"scale":295828763.795777},{"level":2,"resolution":39135.7584820001,"scale":147914381.897889},{"level":3,"resolution":19567.8792409999,"scale":73957190.948944},{"level":4,"resolution":9783.93962049996,"scale":36978595.474472},{"level":5,"resolution":4891.96981024998,"scale":18489297.737236},{"level":6,"resolution":2445.98490512499,"scale":9244648.868618},{"level":7,"resolution":1222.99245256249,"scale":4622324.434309},{"level":8,"resolution":611.49622628138,"scale":2311162.217155},{"level":9,"resolution":305.748113140558,"scale":1155581.108577},{"level":10,"resolution":152.874056570411,"scale":577790.554289},{"level":11,"resolution":76.4370282850732,"scale":288895.277144},{"level":12,"resolution":38.2185141425366,"scale":144447.638572},{"level":13,"resolution":19.1092570712683,"scale":72223.819286},{"level":14,"resolution":9.55462853563415,"scale":36111.909643},{"level":15,"resolution":4.77731426794937,"scale":18055.954822},{"level":16,"resolution":2.38865713397468,"scale":9027.977411},{"level":17,"resolution":1.19432856685505,"scale":4513.988705},{"level":18,"resolution":0.597164283559817,"scale":2256.994353},{"level":19,"resolution":0.298582141647617,"scale":1128.497176},{"level":20,"resolution":0.14929107082380833,"scale":564.248588},{"level":21,"resolution":0.074645535411904163,"scale":282.124294},{"level":22,"resolution":0.037322767705952081,"scale":141.062147}]},
"minLOD" : 13,
"maxLOD" : 22,
"initialExtent" : {
"xmin" : -13240863.776,
"ymin" : 4023715.1402999982,
"xmax" : -13173870.3567,
"ymax" : 4054853.8936000015,
"spatialReference" : {
"wkid" : 102100,
"latestWkid" : 3857
}
},
"fullExtent" : {
"xmin" : -13240863.776,
"ymin" : 4023715.1402999982,
"xmax" : -13173870.3567,
"ymax" : 4054853.8936000015,
"spatialReference" : {
"wkid" : 102100,
"latestWkid" : 3857
}
},
"units" : "esriMeters",
"supportedImageFormatTypes" : "",
"created" : null,
"modified" : null,
"status" : "created",
"access" : "SECURE",
"minScale" : 79320,
"maxScale" : 141,
"exportTilesAllowed" : false,
"maxExportTilesCount" : 100000,
"cacheOnDemand" : true,
"capabilities" : "Map,ChangeTracking",
"type" : "MapServer",
"currentVersion" : 11.1,
"changeTrackingInfo" :
{
"lastSyncDate" : 1610980196116,
"layerServerGens" : [
{
"id" : 0,
"minServerGen" : 353490,
"serverGen" : 865008
}
]
},
"scheduleInfo" : {
"name" : "",
"startAt" : 1691518103060,
"state" : "enabled",
"recurrenceInfo" : {
"frequency" : "minute",
"interval" : 2
}
}
}
Tutorials
Import data to create a feature layer
Use data management tools to import files and create a feature layer in a feature service.
Define a new feature layer
Use data management tools to define and create a new empty feature layer in a feature service.
Manage a feature layer
Use a hosted feature layer item to set the properties and settings of a feature layer in a feature service.
Create a vector tile service
Use data management tools to create a new vector tile service from a feature service.
Create a map tile service
Use ArcGIS Online or scripting APIs to publish a map tile service.
Workflows
Create a feature service for an app
Learn how to import parcel data, create and style a feature layer, and then access the features in an app.
Create a feature layer view for an editor app
Learn how to import parcel data, create and style a feature layer view, and then access the features in an editing app.
Create a vector tile service for an app
Learn how to import parcel data, style a feature layer, and then create a vector tile service for an app.
Create a map tile service for an app
Learn how to import contour data, style a feature layer, and create a map tile service for an app.
Services
Feature service
Add, update, delete, and query feature data.
Vector tile service
Store and access vector tile data.
Map tile service
Store and access map tile data.
Image service
Store and access imagery and raster data.
API support
Use data management tools or Client APIs to create, manage, and access data services. The table below outlines the level of support for each API.
- 1. Use portal class and direct REST API requests
- 2. Access via ArcGIS REST JS
- 3. Requires manually setting styles for renderers