Seperate internal and API methods for the map
This commit is contained in:
@@ -91,7 +91,7 @@ class PinchZoom extends PointerInteraction {
|
||||
const centroid = centroidFromPointers(this.targetPointers);
|
||||
centroid[0] -= viewportPosition.left;
|
||||
centroid[1] -= viewportPosition.top;
|
||||
this.anchor_ = map.getCoordinateFromPixel(centroid);
|
||||
this.anchor_ = map.getCoordinateFromPixelInternal(centroid);
|
||||
|
||||
// scale, bypass the resolution constraint
|
||||
map.render();
|
||||
|
||||
Reference in New Issue
Block a user