I used openlayers 4.4 to create a web mapping interface. Is there a special method to update the code and functions to be compatible with versions 6 ?
Asked
Active
Viewed 89 times
1 Answers
1
If you continue to use the ol.js
build as in https://openlayers.org/en/latest/doc/quickstart.html many maps will continue to work, or only need minor changes which are documented in the Upgrade notes. The most common problems are likely to be:
https://github.com/openlayers/openlayers/blob/main/changelog/upgrade-notes.md#layers-can-only-be-added-to-a-single-map (this often affects maps with an OverviewMap control)
Also maps will no longer open with a default size, so you need to use css or otherwise set the size of the map div.

Mike
- 16,042
- 2
- 14
- 30
-
ok thanks I just saw a first error on my part, it's my way of accessing the properties of objects. I just noticed that Object.o.property does not work with the different versions minified or not. So I changed that to object.getProperties()['property'] over dozens of lines. I continue my adaptation – ericire Jan 18 '22 at 16:18