Set a map's reference scale and control which feature layers should honor that scale.
Setting a reference scale on a Map
fixes the size of symbols and text to the desired height and width at that scale. As you zoom in and out, symbols and text will increase or decrease in size accordingly. When no reference scale is set, symbol and text sizes remain the same size relative to the MapView
.
Map annotations are typically only relevant at certain scales. For instance, annotations to a map showing a construction site are only relevant at that construction site's scale. So, when the map is zoomed out that information shouldn't scale with the MapView
, but should instead remain scaled with the Map
.
- Use the 'Set reference scale' button to set the map's reference scale (1:500,000 1:250,000 1:100,000 1:50,000).
- Use the 'Configure layers' button to choose which layers participate in symbol scaling.
- Select the feature layers that should honor the reference scale.
- Get and set the reference scale property on the
Map
object. - Get and set the scale symbols property on each individual
FeatureLayer
object.
- Map
- FeatureLayer
The map reference scale should normally be set by the map's author and not exposed to the end user like it is in this sample.
Maps & Scenes, reference, annotation, scale