Skip to content

setView() called repeatedly does not work. #2485

@GoTo-Romania

Description

@GoTo-Romania

If setView() is called too fast the map will not apply the new view/location. After this, only setting a different location will work. Setting the same location after some delay will not work.

http://jsfiddle.net/Vc379/2/

Tested on FF 27, Opera 19 and Chrome 33.0.1750.117. The problem seems to come from some timing. If you call setView fast enough it will break, if not, it will work. Depending on the actual application code some browsers work but others don't. I guess it's all about how fast they run javascript. My application doesn't work in FF but works in Opera and Chrome. This jsfiddle doesn't work in all three.

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