Optional apiCustom MapTiler Cloud API key to use instead of the one in global config
Optional attribution?: "bottomright" | "bottomleft" | "topleft" | "topright" | falsePlacement of the attribution. Can also be set to false to not show attribution.
Default: "bottomright"
Optional format?: "png" | "jpg" | "webp"Image format.
Default: "png"
Optional height?: numberHeight of the output image. Maximum value: 2048.
Default: 1024
Optional hiDPI?: booleanDouble the size of the static map image to support hiDPI/Retina monitors.
Default: false
Optional markerPosition of the marker regarding its coordinates. Applies only:
markerIcon"bottom"Optional markerURL of the marker image. Applies only if one or multiple markers positions are provided. Default: none provided
Optional markers?: StaticMapMarker | StaticMapMarker[]A marker or list of markers to show on the map Default: none provided
Optional path?: Position[]Draw a path or polygon on top of the map. If the path is too long it will be simplified, yet remaining accurate. Default: none provided
Optional pathColor of the filling, also works if the polygon is not closed. The color must be CSS compatible. Examples:
"#FF0000" (red)"#F00" (red)"#FF000008" (red, half opacity)"#F008" (red, half opacity)"red", "chartreuse", etc."rgb(128, 100, 255)""rgb(128, 100, 255, 0.5)"
Default: none (transparent filling)Optional pathColor of the path line. The color must be CSS compatible. Examples:
"#FF0000" (red)"#F00" (red)"#FF000008" (red, half opacity)"#F008" (red, half opacity)"red", "chartreuse", etc."rgb(128, 100, 255)""rgb(128, 100, 255, 0.5)"
Default: "blue"Optional pathWidth of the path line in pixel. It can be floating point precision (ex: 0.5)
Default: 1 if hiDPI is false and 2 if hiDPI is true.
Optional style?: string | ReferenceMapStyle | MapStyleVariantStyle of the map (not full style URL). Example: "winter", "streets-v2".
Default: "streets-v2"
Optional width?: numberWidth of the output image. Maximum value: 2048.
Default: 1024
Generated using TypeDoc
Base set of options that can be provided to all the types of static maps