An object describing the default values used in MapNavigator.

Hierarchy

  • MapNavigatorDefaults

Properties

Describes the defaults for the MapNavigator.fit operation.

Describes the defaults for the MapNavigator.lookFrom operation.

Describes the defaults for the MapNavigator.pan operation.

Describes the defaults for the MapNavigator.rotate operation.

snapToScaleLevels: boolean

Indicates whether or not navigation operations that affect scale levels (MapNavigator.fit) should snap to scale levels. Enabling this ensures pixel-perfect display of raster layers when fitting or zooming. Disabling this allows for more fine-grained control over zoom and fit levels. Initially, scale snapping is disabled.

This property only affects 2D maps.

Note that adding a GoogleLayer to the Map will force this default to true (a GoogleLayer will not render anything if the map is not exactly at the correct scale level).

Describes the defaults for the MapNavigator.zoom operation.