Releases: watergis/maplibre-gl-export
@watergis/[email protected]
Patch Changes
- 6dd9820: fix: add check for actual image data before calling addImage by @jmbarbier
@watergis/[email protected]
Patch Changes
- 6dd9820: fix: add check for actual image data before calling addImage by @jmbarbier
@watergis/[email protected]
@watergis/[email protected]
@watergis/[email protected]
Minor Changes
-
406978e: feat: add attribution to the bottom-right of an exported image.
attributionStyle
property is added into options. The default attribution style is{ attributionStyle: { textSize: 16, textHaloColor: '#FFFFFF', textHaloWidth: 0.8, textColor: '#000000', fallbackTextFont: ['Open Sans Regular'] } }
This plugin will try to get attribution from HTMLElement by class name of 'maplibregl-ctrl-attrib-inner' or 'mapboxgl-ctrl-attrib-inner' first. If elements are not available, it will try to make attribution text from 'attribution' property of map style source.
If
glyphs
property is not set to map style, attribution will not be added since the plugin will add attribution as a symbol layer of maplibre/mapbox.In terms of text-font, the plugin will use the same font of the first layer which has text-font property in its layer style. If a text-font is not available from style object, fallbackTextFont will be used instead.
@watergis/[email protected]
Minor Changes
-
406978e: feat: add attribution to the bottom-right of an exported image.
attributionStyle
property is added into options. The default attribution style is{ attributionStyle: { textSize: 16, textHaloColor: '#FFFFFF', textHaloWidth: 0.8, textColor: '#000000', fallbackTextFont: ['Open Sans Regular'] } }
This plugin will try to get attribution from HTMLElement by class name of 'maplibregl-ctrl-attrib-inner' or 'mapboxgl-ctrl-attrib-inner' first. If elements are not available, it will try to make attribution text from 'attribution' property of map style source.
If
glyphs
property is not set to map style, attribution will not be added since the plugin will add attribution as a symbol layer of maplibre/mapbox.In terms of text-font, the plugin will use the same font of the first layer which has text-font property in its layer style. If a text-font is not available from style object, fallbackTextFont will be used instead.
@watergis/[email protected]
Minor Changes
- 85470db: feat: added Portuguese language which the translation was contributed by @leoneljdias via #133
Patch Changes
@watergis/[email protected]
Minor Changes
- 85470db: feat: added Portuguese language which the translation was contributed by @leoneljdias via #133
Patch Changes
@watergis/[email protected]
@watergis/[email protected]
Minor Changes
-
7639be0: feat: export markers as circle layer if they are added to map object.
markerCirclePaint
option is added to allow changing default circle style for marker. The default marker style is:{ "circle-radius": 8, "circle-color": "red", "circle-stroke-width": 1, "circle-stroke-color": "black" }