You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am building a dynamic heat map using elasticsearch, so the amount of points can vary according to the precision reported by the user, but when I have a lot of points I can not see changes on the map.
By doing some tests, I saw that the latLngToContainerPoint function in the leaflet.js file converts different data to the same point on the map, making a considerable reduction in the number of points that are drawn, thus not allowing the map to be wide.
An example is the data below, which are converted to the same point (x = 500, y = 400)
[-19.9155, -43.94, 1115]
[-19.921, -43.94, 933]
Obs.
1 The problem can be verified using the examples map1 and map2.
2. In map2, the function that constructs the heat layer (_createHeatLayer) is only using 1/3 of the points, so that the change in the heat layer becomes noticeable.
3º To simulate the problem open the files map1 is map2, then click add and subtract precision.
Good afternoon.
I am building a dynamic heat map using elasticsearch, so the amount of points can vary according to the precision reported by the user, but when I have a lot of points I can not see changes on the map.
By doing some tests, I saw that the latLngToContainerPoint function in the leaflet.js file converts different data to the same point on the map, making a considerable reduction in the number of points that are drawn, thus not allowing the map to be wide.
An example is the data below, which are converted to the same point (x = 500, y = 400)
[-19.9155, -43.94, 1115]
[-19.921, -43.94, 933]
Obs.
1 The problem can be verified using the examples map1 and map2.
2. In map2, the function that constructs the heat layer (_createHeatLayer) is only using 1/3 of the points, so that the change in the heat layer becomes noticeable.
3º To simulate the problem open the files map1 is map2, then click add and subtract precision.
Example
Map1 - precision 8
Map2 - precision 8
files for testing
https://github.com/divinocfelix/Leaflet-heat-map
The text was updated successfully, but these errors were encountered: