Best practices for map creators

ArcGIS Online provides the resources you need to effectively share your spatial information with the world through online, interactive maps. Sharing a web map allows you to graphically communicate with anyone with a web browser, mobile device, or desktop viewer.

As someone who creates maps, you want to effectively communicate your message and meet the needs of the people and apps that will consume your maps. To achieve this, you must choose the layers that best meet your needs and the needs of those with whom you share your map. You may also need to alter properties of the layer to better communicate your ideas in the map.

Choose the type of layer that provides the functionality and meets the performance demands you require. Optimize your maps for high demand explains what layer types and configurations can improve response times for your map.

Next, decide if you need to change the style or other properties of the layers you include in your map. Apply different configurations to a layer explains when you may want to save a copy or copies of a layer, which allows you to apply your own settings without altering or duplicating the underlying data. Apply your own style to a vector tile layer explains when to alter the style in the map and when you need to copy the layer to create a separate style file.

Optimize your maps for high demand

If your map is picked up by social media and is viewed by thousands or millions of users at once, you will want your map to load as quickly as possible. Follow these guidelines for optimizing the layers in your map to reduce the time it takes to load the map during high-demand activity.

  • If your data has more than 4,000 point features or 2,000 line or polygon features, or is larger than 10 MB, publish it as a hosted feature layer and ensure editing is disabled. When editing is enabled, the browser makes larger requests to include full geometry of the hosted feature layer, which makes the layer slower to draw. If your data needs to be edited, create a view of your hosted feature layer. The view can remain read-only with editing disabled while your primary feature layer is shared with the specific individuals who will be making edits.
  • Remove any filters on your hosted feature layers. If it is important to manage a subset of the features as an individual layer, publish each filtered set of data as its own individual layer.
  • If the data in your publicly available hosted feature layer is not updated frequently and editing and sync are not enabled on the layer, consider adjusting the layer cache to improve performance.

Apply different configurations to a layer

Layer owners define the properties stored with the layer, such as the title, visibility range, and style. When you find the type of layer that contains the data you need and add it to your map, you may decide you need to apply your own configurations to the layer to tailor what you present in your map. You can change many of these properties directly in the map, but what if you want to use the same layer in your map but with different styles or filters applied? In these cases, make a copy of the layer inside your map and alter the settings for each copy.

For example, you want your map to show the businesses in your downtown area. You have a single hosted feature layer that contains business locations, names, types, and information about tenancy and business licenses. You want to show different layers that represent the downtown area for different time periods. Change the style of the feature layer to use different symbols for different types of businesses. Next, make and save three copies of the layer, one for each of the following time periods, and name the copies accordingly: businesses 1900 to 1939, businesses 1940 to 1989, and businesses 1990 to present. Apply a filter to each saved copy to show the business information for those time periods. You now have three different representations of the same layer in your map.

When you copy most types of layers, your copy still references the data in the original layer. See Copy and save layers for more information on when you should make a copy only and when you should save your copy.

Apply your own style to a hosted vector tile layer

Map Viewer Classic (formerly Map Viewer) allows you to change the style of the vector tile layers in your maps. This is similar to changing the style of a feature layer in your map, as the style is applied only in that specific map.

If you want the same style to be available in other maps without having to redefine it in each map, save a copy of the layer, download the layer's style file from the layer's item page, edit the style, and update your copy of the hosted vector tile layer to use the new style.

See Update vector tile layer style for instructions on changing styles in Map Viewer Classic and links to instructions for altering a style file.

Like the copies you make to apply different configurations, the copy of a hosted vector tile layer that you save still references the original vector tiles. If the owner of the hosted vector tile layer deletes the layer or stops sharing it with you, you no longer have access to the data. Similarly, if the owner of the hosted vector tile layer replaces the layer's contents with a layer that does not include your new style, the style you defined on your copy may no longer function.