-
Notifications
You must be signed in to change notification settings - Fork 327
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
base: master
Are you sure you want to change the base?
Fix #998 - ol layer vectorImage is not rendered #1005
Conversation
There was a problem hiding this 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?
let convertedVectorLayer = new olLayerVector({source: null}); | ||
convertedVectorLayer.setStyle(olLayerWithParents.layer.getStyle()) | ||
convertedVectorLayer.setSource(olLayerWithParents.layer.getSource()) | ||
olLayer = convertedVectorLayer; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, see #1004.
"name": "@inveni/ol-cesium", | ||
"version": "0.00.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't change this.
Hi is this fixed? Cause i still have problems showing image vector layers in 3d? |
#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