THIS SDK ISDEPRECATED.

We rolled out a new and better SDK for you.

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 compared to this library.

To use this library, add the following dependency to the Podfile file:

pod 'TomTomOnlineSDKMapsStaticImage'

Example of displaying static map:

1let query = TTStaticImageQueryBuilder.withCenter(TTCoordinate.AMSTERDAM())
2 .withLayer(.basic)
3 .withStyle(.main)
4 .withExt(.PNG)
5 .withHeight(512)
6 .withWidth(512)
7 .build()
TTStaticImageQuery *query = [[[[[[[TTStaticImageQueryBuilder withCenter:[TTCoordinate AMSTERDAM]] withLayer:TTLayerTypeBasic] withStyle:TTStyleTypeMain] withExt:TTExtTypePNG] withHeight:512] withWidth:512] build]

image

Sample image retrieved from the static map service.

image

Examples of static map images.

Api Reference Static Map Image

API reference for Static Map Image