Smart Mapping

Smart Mapping is a new capability built into ArcGIS Online and Portal for ArcGIS (10.3.1 and after) with which you can easily create beautiful and stunning maps. With smart mapping your GIS get the ability to quickly analyze your data and set smart defaults allowing you to easily create an illustrative map.

To learn more about this exciting capability visit the help page and this blog article. Here is a detailed help on various ways you can symbolize your data.

Visualizing line features

The first example shows some ideas to visualize linear features using streets data. When you add an item to your map, the map widget visualizes using the default symbology of the item. In this sample, you will see how you can use smart mapping to better visualize the same layer.

You can add the layer back to the map by passing the URL to the layer and specifying how you want the layer rendered. In this sample we will use ClassSizeRenderer to emphasize differences in value by varying the thickness of line features.

In [ ]:
from arcgis.gis import *
gis = GIS()
In [ ]:
map1 ='USA',3)

line features

Let us search for an item titled USA Freeway System by Esri and add that to the map

In [ ]:
search_result ='title:USA freeway system AND owner:esri', 
                                  item_type = 'Feature Layer')
Out[ ]:
[<Item title:"USA Freeway System" type:Feature Service owner:esri>]
In [ ]:
freeway_item = search_result[0]

The freeway layer uses a simple symbology. Let us visualize it by one of the fields available on the feature layer. To do that, we get the Item's layers as FeatureLayer objects. From the FeatureLayer object, we can find the url and available fields.

In [ ]:
# Use the first layer available on the service.
freeway_feature_layer = freeway_item.layers[0]

# Print the layer's url and field names.
for field in['fields']:

Let us use DIST_MILES field and symbolize it with varying colors. Let us also change the extent of the map to illustrate the differences better.

In [ ]:
map1.add_layer(freeway_feature_layer, {"renderer":"ClassedSizeRenderer", "field_name": "DIST_MILES"})
In [ ]:
# Change map's extent to Los Angeles city = [34, -118]
In [ ]:
map1.zoom = 10

Thus, we represented longer freeways as thicker lines and shorter ones with thinner lines.

Visualizing area features

Area or polygon features are typically symbolized in varying colors to represent the differences in values. The example below shows how a Classed Color Renderer can be used to visualize the population differences between the counties of the state of Washington.

As you have seen in the previous sample, by using the smart mapping capability, you can author the map just by specifying the renderer type and the field to use and your GIS does the rest such identifying a suitable color scheme based on your basemap and the min and max values for the color ramp.

The sample also shows how a definition expression can be used to limit the features displayed from the layer, and how the layer can be represented with transparency allowing the basemap to be seen.

In [ ]:
map2 ='Seattle, WA', 6)
In [ ]:

area features

The steps to search for a Feature Layer item and obtaining its url is demonstrated in the previous sample. For brevity, this sample skips that part.

In [ ]:
               "definition_expression" : "STATE_NAME='Washington'",

Visualizing location data

Point features are the most common type of location data. Smart mapping provides a special visualization technique called heatmap. The heatmap renderer is useful when representing the spatial distribution or clustering of points as it represents the relative density of points on a map as smoothly varying sets of colors ranging from cool (low density) to hot (many points).

Thus, the sample below visualizes earthquake occurrences in Southern California, using the heatmap renderer

In [ ]:
map3 ='Los Angeles', 8)
In [ ]:

location data

In [ ]:

Feedback on this topic?