Skip to content

Error: Cannot read property '1' of null when using map.setView on not visible map #1707

@waltsu

Description

@waltsu

_getPos-function raises Uncaught TypeError when trying to call map.setView when map is not visible (E.g after calling $('#map').hide(). I've tracked the issue to line 7893 in version 0.5.1. If map-element is not visible, style[L.DomUtil.TRANSFORM] will return 'none' but transformRegex expects matrix-string which causes the error when matches-array is null.

However I don't know enough about the Leaflet to be able to contribute with the pull request. Please share your ideas about the issue and maybe some hints how to properly fix this issue so I can make the pull request.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions