-
Notifications
You must be signed in to change notification settings - Fork 302
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
Feature: Stylize points mesh. #2180
Conversation
cc81cb6
to
3a3947f
Compare
e8ba758
to
c27b318
Compare
c27b318
to
e800e31
Compare
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.
As you changed the context from:
const context = { globals, properties: () => geometry.properties };
to
context.setCollection(options.collection);
...
context.globals = { point: true }
...
context.setGeometry(geometry);
It should also be done in file Feature2Texture and LabelLayer that also use 'context'.
src/Converter/Feature2Mesh.js
Outdated
@@ -650,6 +669,8 @@ export default { | |||
options.layer = this; | |||
} | |||
|
|||
options.collection = collection; |
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.
Why not use context.setCollection(options.collection)
here instead of each sub functions ?
and use options.matrixWorldInverse
and options.crs
or context.get matrixWordInverse and crs
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.
Yes, thanks, good catch
I pushed a proposal
yes in other PR, because there's many changes in this current PR |
b69924e
to
1159e15
Compare
@ftoromanoff with your comment on new |
2c35395
to
4b3337e
Compare
b084369
to
9cf9728
Compare
Refactoring Feature and Feature2Mesh to improve software architecture and add styling points feature. Software architecture * move Style responsibility from Feature to Feature2Mesh, because no stylisation must be applied when parsing. * add FeatureContext class to encapsulate all properties and methods necessary for stylization.
9cf9728
to
d05d4c6
Compare
the example source_stream_wfs_25d.html is broken ? |
Description
Refactoring
Feature
andFeature2Mesh
to improve software architectureand add styling points feature.
Software architecture
Style
responsibility fromFeature
toFeature2Mesh
, because no stylisation must be applied when parsing.FeatureContext
class to encapsulate all properties and methods necessary for stylization.Motivation and Context
Style
fromFeature
Style
in convert give points stylization featurealtitude.min
andmax
because they were added purely for aesthetic reasonsScreenshots