sanak / geos-wasm

WASM + JS port of GEOS
https://sanak.github.io/geos-wasm/tester/index.html
GNU Lesser General Public License v2.1
1 stars 0 forks source link

Upgrade OpenLayers 2.7 to 2.13.1 with refactoring #1

Closed sanak closed 1 year ago

sanak commented 1 year ago

From the past ol2 releases (https://github.com/openlayers/ol2/releases), current OpenLayers version seems to be 2.7.

Before upgrading OpenLayers 7.5.0, consider to upgrade patch version with refactoring current codes as much as possible.

sanak commented 1 year ago

Consider to refactor the followings.

sanak commented 1 year ago

Related with the 2nd task (wrapping tester.js as some class (Tester)), I am not sure what is the best solution.

Recent JavaScript class seems to support private class fields, but I haven't seen the use case. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Private_class_fields

From the following Stack Overflow post, most scored one is legacy function + this way was the most understandable way for me. https://stackoverflow.com/questions/55611/javascript-private-methods?answertab=scoredesc#tab-top

sanak commented 1 year ago

Done in tester branch.