Skip to content

event.layer.setStyle is not a function error for POINT geometries #554

@dkintgen

Description

@dkintgen

I have a Collection with a set of Items that are POINT geometries:

Image

If I click on one of the blue flags, I get this error:

Image

It works in 3.2.0 but not 3.3.0. My Collections that have MULTIPOLYGON I have found a section of Map.vue file that can be commented out to "fix" this issue, but I am not sure what other unintended consequences I am causing by commenting these lines out:

if (event.layer) { this.selectedItem.oldStyle = Object.assign({}, event.layer.options); event.layer.setStyle(Object.assign({}, event.layer.options, {color: '#dc3545'})); }

None of the changes from 3.2.0 -> 3.3.0 seem to have directly caused this. Can anyone tell me why this started happening or what problems I will be causing by commenting out the above lines of code in Map.vue?

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions