-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Adjust dot size with zoom level #2618
Comments
+1 |
+1 ! |
@jthomassie Is this issue similar to any of the ones you entered today? |
@rashidkpc yes, this is somewhat related to #3159 and #3161, and it is a bit complicated to explain. Precision 7 markers can not be appreciated at a map zoom in the examples above. The markers ideally represent a diameter of 155m or 500ft at that precision, probably much more precise than the original data. • This is an inherent challenge with geohash grids. Going up in precision creates much smaller geohash grid areas and typically reduces bucket counts for each point/marker. • If the original lat/long data is precise enough to warrant a geohash precision of 7, then you must zoom in to see that level of precision on a map, and the markers should not be much bigger than that area or they will completely obscure each other. • If the original lat/long data is NOT that precise, increasing the precision on the map tends to 'hide' the data by putting similar bucket counts into smaller and smaller geohash grid areas (represented by smaller markers). • Circles are very poor representations of geohash grids because the area of each grid rectangle varies dramatically depending on the latitude, due to distortion of a cartesian grid on a sphere. Some grid areas are very horizontal and some are very vertical, so fitting circle markers to the grid is very imprecise. Rectangles are much better -- they precisely show the actual grid area. • So, to put markers for geohash grids on a map, we need to use either rectangles of the actual area or circle markers that is fit the ideal area (at the equator): • Most of the time, the original lat/long data does not warrant a precision higher than 5 or 6 or maybe 7. In my experience, it is rare that lat/longs are at 20m or less apart. See elasticsearch geohash grid aggregation explanation: |
Here is some US data for places (cities, towns, places, etc.). The ideal precision to view this is on a map is between about 3 and maybe 4 or 5. (Precision 6 is 2000ft apart, and towns are not that close to each other). (I modified 'Shaded Circles Markers' to show rectangles for this demo. Note shapes and sizes of the geohash grid rectangles as precision changes) |
@jthomassie - Concerning:
While I see where you are coming from, I believe your statement makes a number of assumptions that are not really true or general enough.
Bottom-line: while I see your point and your user case, I think it would be a poor choice to swap circles for rectangles. Rectangles should absolutely be one of the alternatives (I would appreciate a simple "pin marker" too, if possible then), though. |
@quasipedia We use leaflet.js and mapquest tiles, so Mercator projection is our only option. That is standard for most, if not all tile map libraries. We're planning several tilemap enhancements that address some of your comments: |
@jthomassie - Thank you for the quick reply! AFAIK, Mapnik has support for non-marcator tiles out of the box, and leaflet.js has support for custom projections too (although IIRC none of those provided as "examples" are equal-areas ones). That said, an equal-area projection would most definitively be towards the bottom of my wish list for Kibana (I'm happy with Marcator for the type of data I use). For reference if somebody would like to give it a go, here's a pair of articles that show how that could be achieved: |
* use apm with #2618 * bump to 3.31
The size of the dots in a Tile Map should be "human-friendly".
I did not inspect the code, but I am under the impression the max size of a circle, when selecting
scaled circle markers
is bound to the size of the underlying geohash_grid cell. This is sensible in theory, but in practice this does not work with zooming. A few screen-grab (precision 1, 3 and 7 at exactly the same zoom level) should exemplify the problem:The problem is many-folded, IMO:
I'd rather prefer the markers to overlap (one can zoom-in to decouple them, if needed) as in any of these two examples:
The text was updated successfully, but these errors were encountered: