Skip to content

gm_temporary icon image not being applied #122

@stychu

Description

@stychu

Below setting is not applied for gm_temporary of the marker. It shows the default icon marker no matter what icon-image property provided.
For the gm_main it works.

Im using latest versions:

"maplibre-gl": "5.15.0",
"@geoman-io/maplibre-geoman-free": "0.6.1",

      layerStyles: {
        marker: {
          gm_main: [
            {
              type: 'symbol',
              layout: {
                'icon-image': 'custom-marker',
                'icon-size': 1,
                'icon-allow-overlap': true,
                'icon-anchor': 'bottom',
              },
            },
          ],
          gm_temporary: [
            {
              type: 'symbol',
              layout: {
                'icon-image': 'custom-marker',
                'icon-size': 1,
                'icon-allow-overlap': true,
                'icon-anchor': 'bottom',
              },
              paint: {
                'icon-opacity': 0.5,
              },
            },
          ],
        },
      }
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions