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

Different style for each point in PointArray #122

Open
alam-R opened this issue Oct 16, 2018 · 3 comments
Open

Different style for each point in PointArray #122

alam-R opened this issue Oct 16, 2018 · 3 comments

Comments

@alam-R
Copy link

alam-R commented Oct 16, 2018

Hi,

We use this method in order to fill geodata object with features: geodata.addPointArray(coordsArray, 'fix', 'some-points');.
By using the above method we can define a property object per Point Array. Later we can use the property in style filter to allocate a style for all points in this array.
We would like to have a different style for each point in point array. Is this possible?
We have tried to use addPoint method for the same purpose but the rendering becomes very slow for thousand points.

Thank you in advance!

@davidmtech
Copy link
Member

Hi,
different style for each point in PointArray is not supported and probably will no be in near future. It its more probable that some optimizations for single points will be applied. Which style properties do you change?

@alam-R
Copy link
Author

alam-R commented Oct 16, 2018

We would like to change color of placemark_circle.png according to a custom value property per point.
Could we apply some kind of optimization for single points geodata in order to increase speed?
Do you know the reason that pointArray is so faster than single point?

@davidmtech
Copy link
Member

Reason for why is pointArray faster than single point is that in case of pointArray are all points rendered at once. In case of single point, every point is rendered separately, but each one can have different properties (color, ... etc.). It possible to do some optimization and group some point during rendering, but it is possible in very specific cases. These optimizations are not implemented yet.

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

No branches or pull requests

2 participants