Geohub provides a capability to export a map as PNG, JPEG or WEBP format on a map editor page. The export control can be accessed via Export button under LAYERS tab.
After clicking the pring button, map export control will be shown in front of the map.
In addition, this control overlays the boundary layer for page size which can help you know which geographical location is exported as an image. If you change a page size to different size, the size of bounding box on the map will be automatically adjusted.
The tool provides the following predefined page sizes which are commonly used. You can choose a page size as you wish.
!!! note
If you select a large page size such as A0, A1, B0 and B1, exporting an image might be very slow. The page sizes smaller than A2 or B2 are recommended to use.
After selecting a page size, continue adjusting the bounding box location.
When you select a page size other than custom size, you can also choose page orientation either Portrait or Landscape.
Furthermore, you can also choose Custom size from dropdown menu. You will be asked to input Width and Height manually when Custom is selected.
High resolution image can also be exported from GeoHub. @1x
, @2x
, @3x
and @4x
are available. @1x
is default setting. The performance of exporting high resolution image such as @3x
and @4x
is relatively slow. @1x
or @2x
is recommended to use generally.
Just click EXPORT button on the control once all settings are made! Please be patient for an image to be ready since your request will be sent to our static image api server to process the image.
There are some options hidden as default, but you may find an interest to use these options to export an image. The below screenshot shows the full options of map export control.
The following file extensions are available currently.
!!! note
Map export control uses GeoHub Static Image API. You might be interested in reading our API documentation [here](https://staticimage.undpgeohub.org/api).