GuidesAPI Reference
Guides

Adjust map position

You can adjust the map position and zoom level using various methods that provide flexibility and meet different use cases. This enables users to focus on specific areas of interest or highlight relevant spatial information effectively. The HERE Map Image API offers the following methods for specifying the map position:

  • Map Center: Specify the exact latitude and longitude coordinates with zoom that serve as the focal point of the map.

    For more information, see Define map center.

  • Bounds: Define the geographic area by specifying the coordinates of the northeast and southwest corners, ensuring that the map encompasses the specified region. Alternatively, provide a set of coordinates that you want to include in a map image.

    For more information, see Set map bounds.

  • Overlay: Allow the addition of visual overlays, such as markers, shapes, or layers, on top of the base map to automatically determine the map view positioning to capture all overlay elements.

    For more information, see Position map based on overlay.

📘

Hint

To get the actual map position, for example, if the map position is determined automatically through the overlay data, you can retrieve the viewport data from the API response header. For more information, see Retrieve viewport data from the API response header.

Next steps

To explore all supported endpoints and parameters, see the API Reference.