Skip to content

Releases: watergis/maplibre-gl-export

@watergis/maplibre-gl-export@3.7.0

13 May 04:16
1ad08c1
Compare
Choose a tag to compare

Minor Changes

@watergis/mapbox-gl-export@3.4.0

13 May 04:16
1ad08c1
Compare
Choose a tag to compare

Minor Changes

@watergis/maplibre-gl-export@3.6.0

06 May 05:05
bd72fa6
Compare
Choose a tag to compare

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/mapbox-gl-export@3.3.0

06 May 05:05
bd72fa6
Compare
Choose a tag to compare

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/maplibre-gl-export@3.5.0

05 May 05:33
f40239a
Compare
Choose a tag to compare

Minor Changes

Patch Changes

  • 1a9b3d8: fix: use local language name for Translation object
  • 64d39b0: refactor: export AvailableLanguages as an array from mapblire-gl-export
  • a86c079: fix: add LanguageCode in Translation interface

@watergis/mapbox-gl-export@3.2.0

05 May 05:33
f40239a
Compare
Choose a tag to compare

Minor Changes

Patch Changes

  • 1a9b3d8: fix: use local language name for Translation object
  • 64d39b0: refactor: export AvailableLanguages as an array from mapblire-gl-export
  • a86c079: fix: add LanguageCode in Translation interface

@watergis/maplibre-gl-export@3.4.1

18 Apr 01:07
6b6360f
Compare
Choose a tag to compare

Patch Changes

  • 4b16e32: fix: enabled addImage code for maplibre-gl-export again
  • 352c82d: refactor: removed unused variable from MapGeneratorBase class

@watergis/maplibre-gl-export@3.4.0

18 Apr 00:39
3ea482c
Compare
Choose a tag to compare

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"
    }

@watergis/mapbox-gl-export@3.1.0

18 Apr 00:39
3ea482c
Compare
Choose a tag to compare

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"
    }

@watergis/maplibre-gl-export@3.3.0

14 Apr 11:29
3d6a81c
Compare
Choose a tag to compare

Minor Changes

  • 1c9327a: feat: apply maplibre terrain mode for image exporting if it is used.