Commit 46a10b5
committed
PB-1875: links with pre-selected features do not center correctly
- Issue: In some occasions, opening a link containing both a center and pre-selected features would prioritize centering on the features rather than centering on the pre-established center. This would only occur at startup. Once the application is running, changing the URL to the one we want would set all parameters correctly
- Cause: On startup, we go through the store sync loop multiple times, and at one point, we set the features after the center, and thus override the center parameter
- Fix: If there is a `center` parameter in the query, we don't set the center on the features extent.1 parent 3e5a290 commit 46a10b5
File tree
1 file changed
+2
-1
lines changed- packages/mapviewer/src/router/storeSync
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
| 241 | + | |
241 | 242 | | |
242 | 243 | | |
243 | 244 | | |
| |||
0 commit comments