Skip to content

Commit fb0895c

Browse files
authored
Merge pull request #621 from OpenGeoscience/reduce-clustering-flicker
Reduce point clustering flicker.
2 parents 24d0bb1 + a4f0c5c commit fb0895c

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/map.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1704,6 +1704,7 @@ var map = function (arg) {
17041704
* with other settings applied.
17051705
*/
17061706
function fix_zoom(zoom, ignoreDiscreteZoom) {
1707+
zoom = Math.round(zoom * 1e6) / 1e6;
17071708
zoom = Math.max(
17081709
Math.min(
17091710
m_validZoomRange.max,

src/pointFeature.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ var pointFeature = function (arg) {
143143
// prevent recomputing the clustering and set the new data array
144144
m_ignoreData = true;
145145
m_this.data(data);
146-
m_this.draw();
147146
};
148147

149148
////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)