Commit 131b7f2
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
| |||
0 commit comments