Close
Angular React Web Components Blazor

Angular Navigating Map Content

Navigation in the GeographicMap control is enabled by default and it allows zooming and panning of the map content. However, this behavior can be changed using the Zoomable property. It is important to know that the map allows only synchronized zooming - scaling the map content with preserved aspect ratio. As result, it is not possible to scale the map content vertically without scaling it also horizontally and vice versa.

Angular Navigating Map Content Example

Geographic Coordinates

You navigate map content within geographic region bound by these coordinates:

  • horizontally from 180°E (negative) to 180°W (positive) longitudes
  • vertically from 85°S (negative) to 85°N (positive) latitudes

This code snippet shows how navigate the map using geographic coordinates:

Window Coordinates

Also, you can navigate map content within window rectangle bound by these relative coordinates:

  • horizontally from 0.0 to 1.0 values
  • vertically from 0.0 to 1.0 values

This code snippet shows how navigate the map using relative window coordinates:

Properties

The following table summarizes properties that can be used in navigation of the GeographicMap control:

Property NameProperty TypeDescription
WindowRectRectSets new position and size of the navigation window in viewable area of the map content. Rect with 0, 0, 1, 1 values will zoom out the entire map content in the navigation window.
WindowScalenumberSets new size of the navigation window in of the map control. It is equivalent smallest value of Width or Height stored in the WindowRect property
WindowPositionHorizontalnumberSets new horizontal position of the navigation window’s anchor point from the left edge of the map control. It is equivalent to value stored in the Left of the WindowRect property.
WindowPositionVerticalnumberSets new vertical position of the navigation window’s anchor point from the top edge of the map control. It is equivalent to value stored in the Top of the WindowRect property.
ActualWindowRectRectIndicates current position and size of the navigation window in viewable area of the map content. Rect with 0, 0, 1, 1 values displays the entire map content in the navigation window.
ActualWindowScalenumberIndicates current size of the navigation window in of the map control. It is equivalent to smallest value of Width or Height stored in the ActualWindowRect property
ActualWindowPositionHorizontalnumberIndicates current horizontal position of the navigation window’s anchor point from the left edge of the map control. It is equivalent to value stored in the Left of the ActualWindowRect property.
ActualWindowPositionVerticalnumberIndicates vertical position of the navigation window’s anchor point from the top edge of the map control. It is equivalent to value stored in the Top of the ActualWindowRect property.

API References