Skip to content

[Map] Unable to customize the icon of a marker with bridgeOptions #3116

@ker0x

Description

@ker0x

In bridge documentations (Google, Leaflet), it state that we can customize the marker icon with bridgeOptions.

However, based on this line, it would seem that this is not the case.

For now my solution is to delete the icon key from the definition object:

delete definition.icon;

But adding a check would improve DX!

if (icon && !Object.hasOwn(rawOptions, 'icon') && !Object.hasOwn(bridgeOptions, 'icon')) {
    this.doCreateIcon({ definition: icon, element: marker });
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions