Skip to content
This repository was archived by the owner on Sep 20, 2019. It is now read-only.

Commit 1a62a98

Browse files
committed
Added a flag to overwrite race condition causing center to be invalid
1 parent d569d4e commit 1a62a98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/directives/center.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ centerDirectiveTypes.forEach(function (directiveName) {
112112
}
113113

114114
leafletScope.$watch(directiveName, function (center) {
115-
if (leafletScope.settingCenterFromLeaflet)
115+
if (!center.forceRefresh && leafletScope.settingCenterFromLeaflet)
116116
return;
117117
//$log.debug("updated center model...");
118118
// The center from the URL has priority

0 commit comments

Comments
 (0)