@maptiler/geocoding-control 2.0.0-rc.7 → 2.0.0-rc.8

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.
Files changed (51) hide show
  1. package/leaflet-controller.d.ts +1 -1
  2. package/leaflet-controller.js +1 -1
  3. package/leaflet-controller.js.map +1 -1
  4. package/leaflet-controller.umd.js +1 -1
  5. package/leaflet-controller.umd.js.map +1 -1
  6. package/leaflet.js +817 -802
  7. package/leaflet.js.map +1 -1
  8. package/leaflet.umd.js +3 -3
  9. package/leaflet.umd.js.map +1 -1
  10. package/maplibregl-controller.d.ts +1 -1
  11. package/maplibregl-controller.js +16 -16
  12. package/maplibregl-controller.js.map +1 -1
  13. package/maplibregl-controller.umd.js +1 -1
  14. package/maplibregl-controller.umd.js.map +1 -1
  15. package/maplibregl.js +1220 -1205
  16. package/maplibregl.js.map +1 -1
  17. package/maplibregl.umd.js +3 -3
  18. package/maplibregl.umd.js.map +1 -1
  19. package/maptilersdk.js +1196 -1181
  20. package/maptilersdk.js.map +1 -1
  21. package/maptilersdk.umd.js +3 -3
  22. package/maptilersdk.umd.js.map +1 -1
  23. package/openlayers-controller.d.ts +1 -1
  24. package/openlayers-controller.js +5 -5
  25. package/openlayers-controller.js.map +1 -1
  26. package/openlayers-controller.umd.js +2 -2
  27. package/openlayers-controller.umd.js.map +1 -1
  28. package/openlayers.js +1405 -1391
  29. package/openlayers.js.map +1 -1
  30. package/openlayers.umd.js +3 -3
  31. package/openlayers.umd.js.map +1 -1
  32. package/package.json +4 -4
  33. package/react.js +860 -845
  34. package/react.js.map +1 -1
  35. package/react.umd.js +1 -1
  36. package/react.umd.js.map +1 -1
  37. package/svelte/GeocodingControl.svelte +50 -25
  38. package/svelte/GeocodingControl.svelte.d.ts +1 -0
  39. package/svelte/leaflet-controller.d.ts +1 -1
  40. package/svelte/leaflet-controller.js +1 -1
  41. package/svelte/maplibregl-controller.d.ts +1 -1
  42. package/svelte/maplibregl-controller.js +1 -1
  43. package/svelte/openlayers-controller.d.ts +1 -1
  44. package/svelte/openlayers-controller.js +1 -1
  45. package/svelte/openlayers.js +2 -3
  46. package/svelte/types.d.ts +2 -1
  47. package/types.d.ts +2 -1
  48. package/vanilla.js +606 -591
  49. package/vanilla.js.map +1 -1
  50. package/vanilla.umd.js +1 -1
  51. package/vanilla.umd.js.map +1 -1
@@ -9,7 +9,7 @@ export declare function createOpenLayersMapController(map: Map, flyToOptions?: A
9
9
  fitBounds(bbox: BBox, padding: number, maxZoom: number): void;
10
10
  indicateReverse(reverse: boolean): void;
11
11
  setReverseMarker(coordinates?: Position): void;
12
- setMarkers(markedFeatures: FeatureType[] | undefined, picked: FeatureType | undefined, showPolygonMarker: boolean): void;
12
+ setFeatures(markedFeatures: FeatureType[] | undefined, picked: FeatureType | undefined, showPolygonMarker: boolean): void;
13
13
  setSelectedMarker(index: number): void;
14
14
  getCenterAndZoom(): [number, x: number, y: number] | undefined;
15
15
  };
@@ -1,7 +1,7 @@
1
1
  import { Feature as N } from "ol";
2
- import { Polygon as ut, MultiPolygon as ft, GeometryCollection as $t, LineString as ct, MultiLineString as ht, Point as Z } from "ol/geom";
2
+ import { Point as Z, Polygon as ut, MultiPolygon as ft, GeometryCollection as $t, LineString as ct, MultiLineString as ht } from "ol/geom";
3
3
  import Tt from "ol/layer/Vector";
4
- import { toLonLat as at, getUserProjection as qt, fromLonLat as V, transformExtent as Qt } from "ol/proj";
4
+ import { fromLonLat as V, transformExtent as qt, toLonLat as at, getUserProjection as Qt } from "ol/proj";
5
5
  import Ut from "ol/source/Vector";
6
6
  import gt from "ol/style/Fill";
7
7
  import Yt from "ol/style/Icon";
@@ -1615,7 +1615,7 @@ function Te(o, t = {}, e = {}, n = Ie) {
1615
1615
  })), o.getTargetElement().style.cursor = p ? "pointer" : c ? "crosshair" : "", i = p);
1616
1616
  });
1617
1617
  function s() {
1618
- return qt() ?? o.getView().getProjection();
1618
+ return Qt() ?? o.getView().getProjection();
1619
1619
  }
1620
1620
  function h(y) {
1621
1621
  return y.transform(Ct, s());
@@ -1639,7 +1639,7 @@ function Te(o, t = {}, e = {}, n = Ie) {
1639
1639
  });
1640
1640
  },
1641
1641
  fitBounds(y, p, d) {
1642
- o.getView().fit(Qt(y, Ct, s()), {
1642
+ o.getView().fit(qt(y, Ct, s()), {
1643
1643
  padding: [p, p, p, p],
1644
1644
  ...d ? { maxZoom: d } : {},
1645
1645
  duration: 2e3,
@@ -1656,7 +1656,7 @@ function Te(o, t = {}, e = {}, n = Ie) {
1656
1656
  new Z(V(y, s()))
1657
1657
  ), l.setProperties({ isReverse: !0 }), a.addFeature(l));
1658
1658
  },
1659
- setMarkers(y, p, d) {
1659
+ setFeatures(y, p, d) {
1660
1660
  function x(v) {
1661
1661
  var w;
1662
1662
  if (v)