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 sdk-maps
library which is much heavier comparing to this library.

To use this library, add the following dependency to the build.gradle file:

api("com.tomtom.online:sdk-maps-static-image:2.+")

Example of displaying static map:

StaticImage.builder(getMapApiKey(getContext()))
        .center(Locations.AMSTERDAM_LOCATION) //use center or boundingBox
        .layerBasic() // basic layer is default
        .styleMain() // main style is default
        .mapSize(512, 512) // default size in px
        .png() //png is default
        .build()
        .downloadInto(staticMap1);


image

Sample image retrieved from static map service.

image

Examples of static map images.