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

Fix #998 - ol layer vectorImage is not rendered #1005

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

or4inveni
Copy link

#998 simple fix for the issue 998 like discussed with @gberaudo

Warning: as the current latest cesium version 1.98.0 is breaking the whole ol-cesium library this commit limits the cesium version to 1.97.0

Copy link
Member

@gberaudo gberaudo left a comment

Choose a reason for hiding this comment

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

Thanks for your PR. Could you please address my comments?

Comment on lines +106 to +109
let convertedVectorLayer = new olLayerVector({source: null});
convertedVectorLayer.setStyle(olLayerWithParents.layer.getStyle())
convertedVectorLayer.setSource(olLayerWithParents.layer.getSource())
olLayer = convertedVectorLayer;
Copy link
Member

Choose a reason for hiding this comment

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

Please directly pass source and style as constructor parameter.
Notably, see https://openlayers.org/en/latest/apidoc/module-ol_layer_Vector-VectorLayer.html

Copy link
Author

Choose a reason for hiding this comment

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

will fix it next week

@@ -31,7 +31,7 @@
"@mapbox/geojsonhint": "^3.0.1",
"@types/webpack": "^5.28.0",
"babel-loader": "8.2.2",
"cesium": "^1.81.0",
"cesium": ">=1.81.0 <=1.97.0",
Copy link
Member

Choose a reason for hiding this comment

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

No, see #1004.

Comment on lines +2 to +3
"name": "@inveni/ol-cesium",
"version": "0.00.1",
Copy link
Member

Choose a reason for hiding this comment

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

Don't change this.

@ninichuuh
Copy link

Hi is this fixed? Cause i still have problems showing image vector layers in 3d?

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.

None yet

3 participants