Static Maps API
Static Maps API reference
Static maps
Center-based image
Generates a raster image based on the specified center and zoom level.
- Type: stringmap
Id requiredIdentifier of the map. See MapTiler Server Maps
http://localhost:3650/admin/. - Type: numberlonrequired
Longitude of the center of the image.
- Type: numberlatrequired
Latitude of the center of the image.
- Type: numberzoomrequired
Zoom level of the resulting image (can be fractional). (In the tile pyramid based on 512x512 tiles.)
- Type: integerwidthrequired
Width of the image in pixels.
- Type: integerheightrequired
Height of the image in pixels.
- enumscaleconst:@2x
Use "@2x" to get "retina"/HiDPI image.
values- @2x
- Type: string enumformatrequired
The value depends on the Map settings.
values- png
- jpg
- webp
- Type: stringpath
Define path(s) to be drawn on top of the map. Can be used multiple times. See Static maps in MapTiler Server.
- Type: stringmarkers
Define marker(s) to be drawn on top of the map. Can be used multiple times. See Static maps in MapTiler Server.
- Type: string enumattribution
Changes the position of map attribution. If you disable the attribution make sure to display it in your application yourself (visibly).
values- bottomright
- bottomleft
- topleft
- topright
- false
- Type: booleanshortest
Draw the shortest paths, allow to cross the dateline.
- image/*
- 400
Out of bounds / Invalid format
- 404
The item does not exist
- 414
URI Too Long. Maximum allowed length is 8192 bytes.
curl http://localhost:3650/api/maps/streets/static/1,1,1/1x1@2x.png
@filenameOK
Bounds-based image
Generates a raster image based on the given bounds.
- Type: stringmap
Id requiredIdentifier of the map. See MapTiler Server Maps
http://localhost:3650/admin/. - Type: numberminxrequired
Longitude of the left (west) edge.
- Type: numberminyrequired
Latitude of the bottom (south) edge.
- Type: numbermaxxrequired
Longitude of the right (east) edge.
- Type: numbermaxyrequired
Latitude of the top (north) edge.
- Type: integerwidthrequired
Width of the image in pixels.
- Type: integerheightrequired
Height of the image in pixels.
- enumscaleconst:@2x
Use "@2x" to get "retina"/HiDPI image.
values- @2x
- Type: string enumformatrequired
The value depends on the Map settings.
values- png
- jpg
- webp
- Type: numberpadding
Ensures the autofitted bounds or features are comfortably visible in the resulting area. E.g. use 0.1 to add 10% margin (at least) of the size to each side.
- Type: stringpath
Define path(s) to be drawn on top of the map. Can be used multiple times. See Static maps in MapTiler Server.
- Type: stringmarkers
Define marker(s) to be drawn on top of the map. Can be used multiple times. See Static maps in MapTiler Server.
- Type: string enumattribution
Changes the position of map attribution. If you disable the attribution make sure to display it in your application yourself (visibly).
values- bottomright
- bottomleft
- topleft
- topright
- false
- Type: booleanshortest
Draw the shortest paths, allow to cross the dateline.
- image/*
- 400
Out of bounds / Invalid format
- 404
The item does not exist
- 414
URI Too Long. Maximum allowed length is 8192 bytes.
curl http://localhost:3650/api/maps/streets/static/1,1,1,1/1x1@2x.png
@filenameOK
Auto-fitted image
Generates a raster image based on the given features. The area is calculated so that all the paths and markers given in query are visible.
- Type: stringmap
Id requiredIdentifier of the map. See MapTiler Server Maps
http://localhost:3650/admin/. - Type: integerwidthrequired
Width of the image in pixels.
- Type: integerheightrequired
Height of the image in pixels.
- enumscaleconst:@2x
Use "@2x" to get "retina"/HiDPI image.
values- @2x
- Type: string enumformatrequired
The value depends on the Map settings.
values- png
- jpg
- webp
- Type: numberpadding
Ensures the autofitted bounds or features are comfortably visible in the resulting area. E.g. use 0.1 to add 10% margin (at least) of the size to each side.
- Type: stringpath
Define path(s) to be drawn on top of the map. Can be used multiple times. See Static maps in MapTiler Server.
- Type: stringmarkers
Define marker(s) to be drawn on top of the map. Can be used multiple times. See Static maps in MapTiler Server.
- Type: string enumattribution
Changes the position of map attribution. If you disable the attribution make sure to display it in your application yourself (visibly).
values- bottomright
- bottomleft
- topleft
- topright
- false
- Type: booleanshortest
Draw the shortest paths, allow to cross the dateline.
- image/*
- 400
Out of bounds / Invalid format
- 404
The item does not exist
- 414
URI Too Long. Maximum allowed length is 8192 bytes.
curl http://localhost:3650/api/maps/streets/static/auto/1x1@2x.png
@filenameOK