Skip to content

Releases: watergis/maplibre-gl-export

@watergis/[email protected]

15 May 13:10
2933f61
Compare
Choose a tag to compare

Patch Changes

  • 6dd9820: fix: add check for actual image data before calling addImage by @jmbarbier

@watergis/[email protected]

15 May 13:10
2933f61
Compare
Choose a tag to compare

Patch Changes

  • 6dd9820: fix: add check for actual image data before calling addImage by @jmbarbier

@watergis/[email protected]

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

Minor Changes

@watergis/[email protected]

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

Minor Changes

@watergis/[email protected]

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/[email protected]

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/[email protected]

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/[email protected]

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/[email protected]

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/[email protected]

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