@mapbox/mapbox-gl-style-spec 14.19.0-beta.2 → 14.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -16162,10 +16162,10 @@
16162
16162
  const y2 = 180 - y * 360;
16163
16163
  return 360 / Math.PI * Math.atan(Math.exp(y2 * Math.PI / 180)) - 90;
16164
16164
  }
16165
- function getLngLatPoint(coord, canonical) {
16165
+ function getLngLatPoint(coord, canonical, extent = EXTENT) {
16166
16166
  const tilesAtZoom = Math.pow(2, canonical.z);
16167
- const x = (coord.x / EXTENT + canonical.x) / tilesAtZoom;
16168
- const y = (coord.y / EXTENT + canonical.y) / tilesAtZoom;
16167
+ const x = (coord.x / extent + canonical.x) / tilesAtZoom;
16168
+ const y = (coord.y / extent + canonical.y) / tilesAtZoom;
16169
16169
  return [
16170
16170
  lngFromMercatorX(x),
16171
16171
  latFromMercatorY(y)
@@ -16604,7 +16604,7 @@
16604
16604
  }
16605
16605
  console.warn('Distance Expression: currently only evaluates valid Point/LineString/Polygon geometries.');
16606
16606
  } else {
16607
- console.warn('Distance Expression: requirs valid feature and canonical information.');
16607
+ console.warn('Distance Expression: requires valid feature and canonical information.');
16608
16608
  }
16609
16609
  return null;
16610
16610
  }