Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to OpenLayers v6.x #147

Merged
merged 7 commits into from
Nov 7, 2019
Merged

Conversation

annarieger
Copy link
Member

BREAKING CHANGE

Upgrades ol-util package to be able to work with ol v 6.x and higher.

Additionally updated autogenerated API documentation.

Please review @terrestris/devs

@@ -48,10 +48,6 @@ describe('FileUtil', () => {
map = TestUtil.createMap();
});

afterEach(() => {
TestUtil.removeMap(map);
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed?

Copy link
Member Author

@annarieger annarieger Nov 7, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Map removal leads to the following error, cause renderer seems to be null at the moment where the test tries to access the map then:

TypeError: Cannot read property 'renderFrame' of null

at Map.PluggableMap.renderFrame_ (node_modules/ol/src/PluggableMap.js:1292:20)
      at Map.<anonymous> (node_modules/ol/src/PluggableMap.js:198:12)
      at Timeout.callback [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:678:19)

The error is possibly due to openlayers/openlayers#9637

For now, I've commented the afterEach test block and added a TODO to investigate it later.

I've also added the corresponding issue --> #150 .

- `value` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** Value to be zerofilled.

Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** converted value with leading zero if necessary.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs are available here and will be updated automatically. I suggest to delete the docs from the README completely (in a follow up MR).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, will be done in a separate MR

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #151

@annarieger annarieger merged commit 91c8601 into terrestris:master Nov 7, 2019
@annarieger annarieger deleted the ol6-upgrade branch November 7, 2019 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants