@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.
- package/leaflet-controller.d.ts +1 -1
- package/leaflet-controller.js +1 -1
- package/leaflet-controller.js.map +1 -1
- package/leaflet-controller.umd.js +1 -1
- package/leaflet-controller.umd.js.map +1 -1
- package/leaflet.js +817 -802
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +3 -3
- package/leaflet.umd.js.map +1 -1
- package/maplibregl-controller.d.ts +1 -1
- package/maplibregl-controller.js +16 -16
- package/maplibregl-controller.js.map +1 -1
- package/maplibregl-controller.umd.js +1 -1
- package/maplibregl-controller.umd.js.map +1 -1
- package/maplibregl.js +1220 -1205
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +3 -3
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.js +1196 -1181
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +3 -3
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers-controller.d.ts +1 -1
- package/openlayers-controller.js +5 -5
- package/openlayers-controller.js.map +1 -1
- package/openlayers-controller.umd.js +2 -2
- package/openlayers-controller.umd.js.map +1 -1
- package/openlayers.js +1405 -1391
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +3 -3
- package/openlayers.umd.js.map +1 -1
- package/package.json +4 -4
- package/react.js +860 -845
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/svelte/GeocodingControl.svelte +50 -25
- package/svelte/GeocodingControl.svelte.d.ts +1 -0
- package/svelte/leaflet-controller.d.ts +1 -1
- package/svelte/leaflet-controller.js +1 -1
- package/svelte/maplibregl-controller.d.ts +1 -1
- package/svelte/maplibregl-controller.js +1 -1
- package/svelte/openlayers-controller.d.ts +1 -1
- package/svelte/openlayers-controller.js +1 -1
- package/svelte/openlayers.js +2 -3
- package/svelte/types.d.ts +2 -1
- package/types.d.ts +2 -1
- package/vanilla.js +606 -591
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +1 -1
- 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
|
-
|
|
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
|
};
|
package/openlayers-controller.js
CHANGED
|
@@ -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
|
|
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 {
|
|
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
|
|
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(
|
|
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
|
-
|
|
1659
|
+
setFeatures(y, p, d) {
|
|
1660
1660
|
function x(v) {
|
|
1661
1661
|
var w;
|
|
1662
1662
|
if (v)
|