Static Maps API

OCreate map pictures with markers and geometries

The Static Maps API lets you create map images in PNG or JPG format. Once created, these images can be added to webpages or printed on paper. With the Static Maps API, you can choose from a wide variety of map styles, add markers to a map, and draw lines and shapes on it.

This Live Demo illustrates a static map for a single location. You can try to select a different location, map style, or map view:

ABOUT TMAPS STATIC MAPS

High-resolution maps

The Static Maps API can be used to generate big-size and high-resolution map pictures. The API supports JPEG and PNG image formats.
You can get a map of up to 4096 x 4096 pixels with the standard API endpoints. We can also provide you with bigger sizes upon request.

Polylines & polygons on maps

To your map images, you can add geometries (circles, rectangles, lines, and polygons). So you can highlight areas and draw routes.
You can specify the fill color and opacity for shapes and stroke width, line style, and more. Read more details about the drawing options on the Static Maps API documentation >>.

Storing & printing at no extra costs

We use OpenStreetMap as a base for our maps, so you can cache, store and redistribute the generated maps at no extra cost.
However, it is necessary to credit OpenStreetMap and other contributors by providing appropriate attributions properly. Learn more about attributions on our documentation page >>

STATIC MAPS EXAMPLES

Here are a few static map examples that demonstrate how to create different map views, prepare for print and add map markers.

High-resolution maps

Geoapify Static Map API allows the creation of high-resolution map images. You can increase the resolution of the map up to 8 times with the scaleFactor parameter. So you can generate high-quality pictures for print media

No scaleFactor specified https://maps.tmaps.tn/v1/staticmap?style=toner&width=800&height=600¢er=lonlat:-0.113019,51.503962&zoom=15.0858&apiKey=YOUR_API_ essayer

Add a polygon

You can add a single geometry or multiple geometries to the map - circles, rectangles, polylines, polygons. Here is an example of a URL with a polygon:

No scaleFactor specified https://maps.tmaps.tn/v1/staticmap?style=positron&width=800&height=600&geometry=polygon:2.303309440612793,48.87913539780315,2.305 essayer

Add a GeoJSON

The following Static Map URL example shows how to add a geometry as a GeoJSON:

No scaleFactor specified https://maps.tmaps.tn/v1/staticmap?style=positron&width=800&height=600&geojson=%7B%22type%22%3A%22FeatureCollection%22%2C%22featu essayer

FAQ

  • Create vector and raster maps you can use as a base-map layer for Leaflet, MapLibre GL, OpenLayers, QGIS, and other map libraries and GIS. Or use our Static Maps API to generate map images and map markers. Choose between different map styles and colors to match your app and website design.
  • Create vector and raster maps you can use as a base-map layer for Leaflet, MapLibre GL, OpenLayers, QGIS, and other map libraries and GIS. Or use our Static Maps API to generate map images and map markers. Choose between different map styles and colors to match your app and website design.

  • Create vector and raster maps you can use as a base-map layer for Leaflet, MapLibre GL, OpenLayers, QGIS, and other map libraries and GIS. Or use our Static Maps API to generate map images and map markers. Choose between different map styles and colors to match your app and website design.
  • Create vector and raster maps you can use as a base-map layer for Leaflet, MapLibre GL, OpenLayers, QGIS, and other map libraries and GIS. Or use our Static Maps API to generate map images and map markers. Choose between different map styles and colors to match your app and website design.

  • Create vector and raster maps you can use as a base-map layer for Leaflet, MapLibre GL, OpenLayers, QGIS, and other map libraries and GIS. Or use our Static Maps API to generate map images and map markers. Choose between different map styles and colors to match your app and website design.
  • Create vector and raster maps you can use as a base-map layer for Leaflet, MapLibre GL, OpenLayers, QGIS, and other map libraries and GIS. Or use our Static Maps API to generate map images and map markers. Choose between different map styles and colors to match your app and website design.