Static Map Image
Static Map Image
Allow your user to render a user-defined, rectangular image, containing a map section.
For more details, please visit Static Map Image documentation
Sample use case 1: Your app is designed to use simple map. You do not want to show the entire map, just some part of it to show and mark something simple. You don’t have to download the whole TomTomOnlineSDKMaps library which is much heavier comparing to this library.
To use this library, add the following dependency to the Podfile file:
pod 'TomTomOnlineSDKMapsStaticImage'
Example of displaying static map:
TTStaticImageQuery *siq = [[[[[[[TTStaticImageQueryBuilder withCenter:COORDINATE_AMSTERDAM]
withLayer:TTLayerTypeBasic]
withStyle:TTStyleTypeMain]
withExt:TTExtTypePNG]
withHeight:512]
withWidth:512]
build];
![]() Sample image retrieved from static map service. |
|
![]() Examples of static map images. |