Sorry, you need to enable JavaScript to visit this website.

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:

_

let query = TTStaticImageQueryBuilder.withCenter(TTCoordinate.AMSTERDAM())
                                     .withLayer(.basic)
                                     .withStyle(.main)
                                     .withExt(.PNG)
                                     .withHeight(512)
                                     .withWidth(512)
                                     .build()
TTStaticImageQuery *query = [[[[[[[TTStaticImageQueryBuilder withCenter:[TTCoordinate AMSTERDAM]] withLayer:TTLayerTypeBasic] withStyle:TTStyleTypeMain] withExt:TTExtTypePNG] withHeight:512] withWidth:512] build];

 



image

Sample image retrieved from static map service.

image

Examples of static map images.