Skip to content

setZoom write attribute but getZoom read property #132

@webshopboys

Description

@webshopboys

Describe the bug

Hi!

I found that setZoom not change zoom level if it is large (no shrink).

I debug and getZoom always zero. Is this not a source bug (setAttribute vs getProperty)?

public void setZoom(int zoom) {
this.getElement().setAttribute("zoom", Integer.toString(zoom));
}

@synchronize({"google-map-idle"})
public int getZoom() {
return this.getElement().getProperty("zoom", 0);
}

Expected behavior

No response

Minimal reproducible example

No response

Add-on Version

1.13.0

Vaadin Version

24.0.5

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions