Skip to content

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

Open
or4inveni wants to merge 2 commits into
openlayers:masterfrom
or4inveni:998_ollayervectorImageisnotrenderedinthe3dmap
Open

Fix #998 - ol layer vectorImage is not rendered#1005
or4inveni wants to merge 2 commits into
openlayers:masterfrom
or4inveni:998_ollayervectorImageisnotrenderedinthe3dmap

Conversation

@or4inveni
Copy link
Copy Markdown

#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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Comment thread package.json
"@types/webpack": "^5.28.0",
"babel-loader": "8.2.2",
"cesium": "^1.81.0",
"cesium": ">=1.81.0 <=1.97.0",
Copy link
Copy Markdown
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 thread package.json
Comment on lines +2 to +3
"name": "@inveni/ol-cesium",
"version": "0.00.1",
Copy link
Copy Markdown
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
Copy Markdown

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.

3 participants