Skip to content

Commit

Permalink
[BUILD]
Browse files Browse the repository at this point in the history
  • Loading branch information
Viglino committed Sep 25, 2024
1 parent 9c2fdcc commit 7b327c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions dist/ol-ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -27910,7 +27910,9 @@ ol.interaction.SelectCluster = class olinteractionSelectCluster extends ol.inter
this.getFeatures().clear()
var center = feature.getGeometry().getCoordinates()
// Pixel size in map unit
var pix = this.getMap().getView().getResolution()
var view = this.getMap().getView()
var userproj = ol.proj.getUserProjection()
var pix = view.getResolution() * (userproj ? view.getProjection().getMetersPerUnit() / userproj.getMetersPerUnit() : 1)
var r, a, i, max
var p, cf, lk
// The features
Expand Down Expand Up @@ -27982,7 +27984,9 @@ ol.interaction.SelectCluster = class olinteractionSelectCluster extends ol.inter
var vectorContext = event.vectorContext || ol.render.getVectorContext(event)
// Retina device
var ratio = event.frameState.pixelRatio
var res = this.getMap().getView().getResolution()
var view = this.getMap().getView()
var userproj = ol.proj.getUserProjection()
var res = view.getResolution() + (userproj ? view.getProjection().getMetersPerUnit() / userproj.getMetersPerUnit() : 1)
var e = ol.easing.easeOut((event.frameState.time - start) / duration)
for (var i = 0, feature; feature = features[i]; i++)
if (feature.get('features')) {
Expand Down
2 changes: 1 addition & 1 deletion dist/ol-ext.min.js

Large diffs are not rendered by default.

0 comments on commit 7b327c5

Please sign in to comment.