Customize GeoJSON overlay
Enrich your map images with additional information in the form or point, line, or polygon geometries as part of a GeoJSON overlay, with custom styling properties. In this example, the API automatically sets the map position based on the overlay features from the provided GeoJSON with the optional padding value.
You can start by generating an image containing one of the default samples:
point: Double markers representing Wrigley Field and Soldier Field in Chicago, US.line: Represents the La Rambla street in Barcelona, Spain.polygon: Covers the area of the Central Park in New York, US.
After generating an image, you can experiment by modifying the GeoJSON style properties in the default samples, changing the map style, or the padding value. You can also generate a map image based on your own GeoJSON.
For more information on GeoJSON and the available style properties for custom overlays, see the GeoJSON format.
Click "Generate Image" to display map
Request URL
Click Generate Image to view the request URL
Updated 23 days ago