Skip to content

(fix) isSameCenterOnMap returns false if coords are nil#1154

Open
ekrtf wants to merge 1 commit intotombatossals:masterfrom
ekrtf:dev
Open

(fix) isSameCenterOnMap returns false if coords are nil#1154
ekrtf wants to merge 1 commit intotombatossals:masterfrom
ekrtf:dev

Conversation

@ekrtf
Copy link
Copy Markdown

@ekrtf ekrtf commented Oct 27, 2016

isSameCenterOnMap helper function returns true when mapCenter and centerModel's coordinates (lat and lng) are all equal to 0.000. This causes the 'moveend' event to fire multiple times and which puts the digest in an infinite loop with the watcher on bounds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant