Skip to content

Commit 131b7f2

Browse files
committed
Convert coordinates (strings) to floats
The search API returns a string with coordinates that are passed along to the OpenLayers animate() method. If these coordinates contain decimals then animate() would point the user to the location on the map. However, if the coordinates didn't contain decimals the map would freeze up and eventually have the browser run out of memory. Converting the coordinates to an array of floats resolves this issue.
1 parent 0dce3e3 commit 131b7f2

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
- Bugfix: Sindes OpenLayers 10 kon het navigeren naar een adres, gevonden met de zoekfunctie, de kaart doen vastlopen en liep het geheugenverbruik van de browser vol waardoor de pagina niet reageerde en uiteindelijk crashte. Dit probleem is opgelost.
12
- Bugfix: het was sinds de vorige update niet meer mogelijk om de location picker in het beheer correct te bedienen. Verplaatsen op de kaart was niet mogelijk net als zoomen.
23
- Javascript/NodeJS dependencies bijgewerkt naar nieuwere versies.
34

src/actions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export function fetchLocation(id) {
147147
coords = [x, y];
148148
break;
149149
}
150+
coords = coords.map(parseFloat);
150151
dispatch(centerMapView(coords));
151152
}
152153
})

0 commit comments

Comments
 (0)