Skip to content

Marker position not correct after wrapper width changed #528

Closed
@7bp

Description

@7bp

In case I change the wrapper width the marker moves to the right, the map not moves at all which results in an improper position of the marker and it does not fix itself after window resize or so. This also appears to happen on the examples you provided. Change the wrapper width to e.g. 90% or a fixed pixel value will cause this. However, resizing the window and therefor the div that holds the map always works properly. I already tried to re-add all markers, re-render, call "resize" onto the googlemap itself without any success. Do you have an quick idea in mind how to solve this? E.g. detect the width (or height) is changed, then proceed like if its a window resize.

In my case I use the map as part of a website with a sidebar that is usually collapsed. If it is open, the main content area that holds the map will become lesser wide and the markers are moving to the side.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions