-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Sizing of scaled_circles markers does not work for all aggregation types #8001
Comments
Since ES 2.0, the Dealing with circle size for count and max/min/avg/median aggregations is a similar problem as #6245. |
In the #7915, one issue was that the new approach did not avoid overlap. Note that this is also an issue with the older approach (below screenshot is from 4.5.4) The core problem here is that the height of a geohash grid is not consistent for a single zoom level. They become taller the closer you go to the poles. Also, depending on the precision-level, they will be longer/shorter than the width. |
The objective seems to not have overlapping circles like shaded circles. In addition we want to have varied circle sizes based on the value of the feature. So is there any objection to using the same code from ShadedCircleMarker for the initial max size and then using a linear scale to determine that features radius? Something like the code below. I also don't like when the circle sizes get really small so I made the linear scale fit within max/3 to max. That's obviously a personal preference so you could just skip that step and do feature.properties.value / this.geoJson.properties.allmax.
|
For anyone interested my solution worked well for me. I changed what I posted before to use L.circleMarker because L.circle was rounding. This helped solve a problem we were having with the circles overlapping each other. |
Closing this in favor of #12672. |
This spun off from PR #7915. Isolating this in ticket, to improve trackability and not clutter this with unrelated changes.
Determining the radius size for circles in the "scaled markers" visualization:
The text was updated successfully, but these errors were encountered: