heremaps / here-sdk-examples

Android, iOS and Flutter example apps for the HERE SDK 4.x (Lite Edition, Explore Edition, Navigate Edition)
https://developer.here.com/products/here-sdk
Apache License 2.0
170 stars 135 forks source link

iOS Navigate SDK: How to download image of route between given source location and destination location swift #261

Closed RahulFate closed 1 year ago

RahulFate commented 1 year ago

Hi Team,

I would like to download static image of drawn route on map view for given source and destination location coordinates. Please suggest , how I can achieve this.

HERE-SDK-Support-Team commented 1 year ago

Hi @RahulFate, with the MapView you can take a screenshot of current map view. Note that this does not work when the map view is currently not visible, for example, when an application is running in background - even if MapView.pause() was not called. Take a look at the API Reference:

takeScreenshot(callback:)