ts-maps 0.3.1 → 0.3.2

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.js CHANGED
@@ -275,17 +275,17 @@ var init_storage = __esm(() => {
275
275
  // src/core-map/core/Util.ts
276
276
  var exports_Util = {};
277
277
  __export(exports_Util, {
278
- wrapNum: () => wrapNum,
279
- throttle: () => throttle,
280
- template: () => template,
281
- stamp: () => stamp,
282
- splitWords: () => splitWords,
283
- setOptions: () => setOptions,
284
- setLastId: () => setLastId,
285
- noop: () => noop,
286
- lastId: () => lastId,
278
+ falseFn: () => falseFn,
287
279
  formatNum: () => formatNum,
288
- falseFn: () => falseFn
280
+ lastId: () => lastId,
281
+ noop: () => noop,
282
+ setLastId: () => setLastId,
283
+ setOptions: () => setOptions,
284
+ splitWords: () => splitWords,
285
+ stamp: () => stamp,
286
+ template: () => template,
287
+ throttle: () => throttle,
288
+ wrapNum: () => wrapNum
289
289
  });
290
290
  function stamp(obj) {
291
291
  if (!("_tsmap_id" in obj)) {
@@ -1810,10 +1810,10 @@ var init_Browser = __esm(() => {
1810
1810
  // src/core-map/dom/DomEvent.PointerEvents.ts
1811
1811
  var exports_DomEvent_PointerEvents = {};
1812
1812
  __export(exports_DomEvent_PointerEvents, {
1813
- getPointers: () => getPointers,
1814
- enablePointerDetection: () => enablePointerDetection,
1813
+ cleanupPointers: () => cleanupPointers,
1815
1814
  disablePointerDetection: () => disablePointerDetection,
1816
- cleanupPointers: () => cleanupPointers
1815
+ enablePointerDetection: () => enablePointerDetection,
1816
+ getPointers: () => getPointers
1817
1817
  });
1818
1818
  function enablePointerDetection(el) {
1819
1819
  el.addEventListener("pointerdown", _onSet, { capture: true });
@@ -1930,21 +1930,21 @@ var init_DomEvent_DoubleTap = __esm(() => {
1930
1930
  // src/core-map/dom/DomUtil.ts
1931
1931
  var exports_DomUtil = {};
1932
1932
  __export(exports_DomUtil, {
1933
- toFront: () => toFront,
1934
- toBack: () => toBack,
1935
- setTransform: () => setTransform,
1936
- setPosition: () => setPosition,
1937
- restoreOutline: () => restoreOutline,
1938
- preventOutline: () => preventOutline,
1939
- getSizedParentNode: () => getSizedParentNode,
1940
- getScale: () => getScale,
1941
- getPosition: () => getPosition,
1942
- get: () => get,
1943
- enableTextSelection: () => enableTextSelection,
1944
- enableImageDrag: () => enableImageDrag,
1945
- disableTextSelection: () => disableTextSelection,
1933
+ create: () => create,
1946
1934
  disableImageDrag: () => disableImageDrag,
1947
- create: () => create
1935
+ disableTextSelection: () => disableTextSelection,
1936
+ enableImageDrag: () => enableImageDrag,
1937
+ enableTextSelection: () => enableTextSelection,
1938
+ get: () => get,
1939
+ getPosition: () => getPosition,
1940
+ getScale: () => getScale,
1941
+ getSizedParentNode: () => getSizedParentNode,
1942
+ preventOutline: () => preventOutline,
1943
+ restoreOutline: () => restoreOutline,
1944
+ setPosition: () => setPosition,
1945
+ setTransform: () => setTransform,
1946
+ toBack: () => toBack,
1947
+ toFront: () => toFront
1948
1948
  });
1949
1949
  function get(id) {
1950
1950
  return typeof id === "string" ? document.getElementById(id) : id;
@@ -2054,19 +2054,19 @@ var init_DomUtil = __esm(() => {
2054
2054
  // src/core-map/dom/DomEvent.ts
2055
2055
  var exports_DomEvent = {};
2056
2056
  __export(exports_DomEvent, {
2057
- stopPropagation: () => stopPropagation,
2058
- stop: () => stop,
2059
- preventDefault: () => preventDefault,
2060
- on: () => on,
2061
- off: () => off,
2062
- isExternalTarget: () => isExternalTarget,
2063
- getWheelPxFactor: () => getWheelPxFactor,
2064
- getWheelDelta: () => getWheelDelta,
2065
- getPropagationPath: () => getPropagationPath,
2066
- getPointerPosition: () => getPointerPosition,
2067
- disableScrollPropagation: () => disableScrollPropagation,
2057
+ PointerEvents: () => exports_DomEvent_PointerEvents,
2068
2058
  disableClickPropagation: () => disableClickPropagation,
2069
- PointerEvents: () => exports_DomEvent_PointerEvents
2059
+ disableScrollPropagation: () => disableScrollPropagation,
2060
+ getPointerPosition: () => getPointerPosition,
2061
+ getPropagationPath: () => getPropagationPath,
2062
+ getWheelDelta: () => getWheelDelta,
2063
+ getWheelPxFactor: () => getWheelPxFactor,
2064
+ isExternalTarget: () => isExternalTarget,
2065
+ off: () => off,
2066
+ on: () => on,
2067
+ preventDefault: () => preventDefault,
2068
+ stop: () => stop,
2069
+ stopPropagation: () => stopPropagation
2070
2070
  });
2071
2071
  function on(obj, types2, fn, context) {
2072
2072
  if (types2 && typeof types2 === "object") {
@@ -2489,18 +2489,18 @@ var init_Events = __esm(() => {
2489
2489
  // src/core-map/dom/easing.ts
2490
2490
  var exports_easing = {};
2491
2491
  __export(exports_easing, {
2492
- linear: () => linear,
2493
- easeOutQuart: () => easeOutQuart,
2494
- easeOutQuad: () => easeOutQuad,
2495
- easeOutCubic: () => easeOutCubic,
2496
- easeOutBack: () => easeOutBack,
2497
- easeInQuart: () => easeInQuart,
2498
- easeInQuad: () => easeInQuad,
2499
- easeInOutQuart: () => easeInOutQuart,
2500
- easeInOutQuad: () => easeInOutQuad,
2501
- easeInOutCubic: () => easeInOutCubic,
2492
+ cubicBezier: () => cubicBezier,
2502
2493
  easeInCubic: () => easeInCubic,
2503
- cubicBezier: () => cubicBezier
2494
+ easeInOutCubic: () => easeInOutCubic,
2495
+ easeInOutQuad: () => easeInOutQuad,
2496
+ easeInOutQuart: () => easeInOutQuart,
2497
+ easeInQuad: () => easeInQuad,
2498
+ easeInQuart: () => easeInQuart,
2499
+ easeOutBack: () => easeOutBack,
2500
+ easeOutCubic: () => easeOutCubic,
2501
+ easeOutQuad: () => easeOutQuad,
2502
+ easeOutQuart: () => easeOutQuart,
2503
+ linear: () => linear
2504
2504
  });
2505
2505
  function linear(t) {
2506
2506
  return t;
@@ -11870,23 +11870,23 @@ init_LatLngBounds();
11870
11870
  init_Point();
11871
11871
  var exports_LineUtil = {};
11872
11872
  __export(exports_LineUtil, {
11873
- simplify: () => simplify,
11874
- polylineCenter: () => polylineCenter,
11875
- pointToSegmentDistance: () => pointToSegmentDistance,
11876
- isFlat: () => isFlat,
11877
- closestPointOnSegment: () => closestPointOnSegment,
11878
- clipSegment: () => clipSegment,
11879
- _sqClosestPointOnSegment: () => _sqClosestPointOnSegment,
11873
+ _getBitCode: () => _getBitCode,
11880
11874
  _getEdgeIntersection: () => _getEdgeIntersection,
11881
- _getBitCode: () => _getBitCode
11875
+ _sqClosestPointOnSegment: () => _sqClosestPointOnSegment,
11876
+ clipSegment: () => clipSegment,
11877
+ closestPointOnSegment: () => closestPointOnSegment,
11878
+ isFlat: () => isFlat,
11879
+ pointToSegmentDistance: () => pointToSegmentDistance,
11880
+ polylineCenter: () => polylineCenter,
11881
+ simplify: () => simplify
11882
11882
  });
11883
11883
 
11884
11884
  // src/core-map/geometry/PolyUtil.ts
11885
11885
  var exports_PolyUtil = {};
11886
11886
  __export(exports_PolyUtil, {
11887
- polygonCenter: () => polygonCenter,
11887
+ centroid: () => centroid,
11888
11888
  clipPolygon: () => clipPolygon,
11889
- centroid: () => centroid
11889
+ polygonCenter: () => polygonCenter
11890
11890
  });
11891
11891
  init_LatLng();
11892
11892
  init_LatLngBounds();
@@ -12161,10 +12161,10 @@ init_TerrainSource();
12161
12161
  // src/core-map/geo/projection/index.ts
12162
12162
  var exports_projection = {};
12163
12163
  __export(exports_projection, {
12164
- SphericalMercator: () => SphericalMercator,
12165
- Mercator: () => Mercator,
12164
+ Globe: () => Globe,
12166
12165
  LonLat: () => LonLat,
12167
- Globe: () => Globe
12166
+ Mercator: () => Mercator,
12167
+ SphericalMercator: () => SphericalMercator
12168
12168
  });
12169
12169
 
12170
12170
  // src/core-map/geo/projection/Projection.Globe.ts
@@ -12323,26 +12323,26 @@ class SimpleCRS extends CRS {
12323
12323
  // src/core-map/services/index.ts
12324
12324
  var exports_services = {};
12325
12325
  __export(exports_services, {
12326
- valhallaMatrix: () => valhallaMatrix,
12327
- valhallaDirections: () => valhallaDirections,
12328
- defaultMatrix: () => defaultMatrix,
12329
- defaultIsochrone: () => defaultIsochrone,
12330
- defaultGeocoder: () => defaultGeocoder,
12331
- defaultDirections: () => defaultDirections,
12332
- ValhallaMatrix: () => ValhallaMatrix,
12333
- ValhallaIsochrone: () => ValhallaIsochrone,
12334
- ValhallaDirections: () => ValhallaDirections,
12335
- PhotonGeocoder: () => PhotonGeocoder,
12336
- OSRMMatrix: () => OSRMMatrix,
12337
- OSRMDirections: () => OSRMDirections,
12338
- NominatimGeocoder: () => NominatimGeocoder,
12339
- MaptilerGeocoder: () => MaptilerGeocoder,
12340
- MapboxMatrix: () => MapboxMatrix,
12341
- MapboxIsochrone: () => MapboxIsochrone,
12342
- MapboxGeocoder: () => MapboxGeocoder,
12343
- MapboxDirections: () => MapboxDirections,
12326
+ GoogleDirections: () => GoogleDirections,
12344
12327
  GoogleGeocoder: () => GoogleGeocoder,
12345
- GoogleDirections: () => GoogleDirections
12328
+ MapboxDirections: () => MapboxDirections,
12329
+ MapboxGeocoder: () => MapboxGeocoder,
12330
+ MapboxIsochrone: () => MapboxIsochrone,
12331
+ MapboxMatrix: () => MapboxMatrix,
12332
+ MaptilerGeocoder: () => MaptilerGeocoder,
12333
+ NominatimGeocoder: () => NominatimGeocoder,
12334
+ OSRMDirections: () => OSRMDirections,
12335
+ OSRMMatrix: () => OSRMMatrix,
12336
+ PhotonGeocoder: () => PhotonGeocoder,
12337
+ ValhallaDirections: () => ValhallaDirections,
12338
+ ValhallaIsochrone: () => ValhallaIsochrone,
12339
+ ValhallaMatrix: () => ValhallaMatrix,
12340
+ defaultDirections: () => defaultDirections,
12341
+ defaultGeocoder: () => defaultGeocoder,
12342
+ defaultIsochrone: () => defaultIsochrone,
12343
+ defaultMatrix: () => defaultMatrix,
12344
+ valhallaDirections: () => valhallaDirections,
12345
+ valhallaMatrix: () => valhallaMatrix
12346
12346
  });
12347
12347
 
12348
12348
  // src/core-map/services/providers/Google.ts
@@ -13807,6 +13807,152 @@ LayersControl.setDefaultOptions({
13807
13807
  return nameA < nameB ? -1 : nameB < nameA ? 1 : 0;
13808
13808
  }
13809
13809
  });
13810
+ // src/core-map/control/LocateControl.ts
13811
+ init_DomEvent();
13812
+ init_DomUtil();
13813
+ var CLASS = "tsmap-control-locate";
13814
+
13815
+ class LocateControl extends Control {
13816
+ onAdd(map) {
13817
+ const options = this.options;
13818
+ const container = create("div", `${CLASS} tsmap-bar`);
13819
+ const link = create("a", `${CLASS}-button`, container);
13820
+ link.href = "#";
13821
+ link.title = options.title ?? "Show your location";
13822
+ link.setAttribute("role", "button");
13823
+ link.setAttribute("aria-label", link.title);
13824
+ link.innerHTML = '<span class="tsmap-locate-icon" aria-hidden="true"></span>';
13825
+ disableClickPropagation(link);
13826
+ on(link, "click", stop);
13827
+ on(link, "click", this._onClick, this);
13828
+ this._button = link;
13829
+ this._setState("idle");
13830
+ map.on("dragstart zoomstart", this._stopFollowing, this);
13831
+ return container;
13832
+ }
13833
+ onRemove(map) {
13834
+ map.off("dragstart zoomstart", this._stopFollowing, this);
13835
+ this._clearWatch();
13836
+ this._clearMarker();
13837
+ }
13838
+ start() {
13839
+ this._locate();
13840
+ return this;
13841
+ }
13842
+ stop() {
13843
+ this._clearWatch();
13844
+ this._clearMarker();
13845
+ this._setState("idle");
13846
+ return this;
13847
+ }
13848
+ _onClick() {
13849
+ if (this._following) {
13850
+ this.stop();
13851
+ return;
13852
+ }
13853
+ this._locate();
13854
+ }
13855
+ _locate() {
13856
+ const nav = typeof navigator !== "undefined" ? navigator : undefined;
13857
+ if (!nav?.geolocation) {
13858
+ this._setState("denied");
13859
+ this._map?.fire?.("locateerror", { message: "Geolocation is not available in this browser" });
13860
+ return;
13861
+ }
13862
+ const options = this.options;
13863
+ this._setState("locating");
13864
+ const positionOptions = {
13865
+ enableHighAccuracy: options.enableHighAccuracy ?? true,
13866
+ timeout: options.timeout ?? 1e4,
13867
+ maximumAge: options.maximumAge ?? 60000
13868
+ };
13869
+ const onError = (error) => {
13870
+ this._clearWatch();
13871
+ this._setState("denied");
13872
+ this._map?.fire?.("locateerror", { code: error.code, message: error.message });
13873
+ };
13874
+ if (options.follow === false) {
13875
+ nav.geolocation.getCurrentPosition((p) => this._onPosition(p, true), onError, positionOptions);
13876
+ return;
13877
+ }
13878
+ this._following = true;
13879
+ this._watchId = nav.geolocation.watchPosition((p) => this._onPosition(p, true), onError, positionOptions);
13880
+ }
13881
+ _onPosition(position, recenter) {
13882
+ const options = this.options;
13883
+ const { latitude, longitude, accuracy } = position.coords;
13884
+ const latlng = [latitude, longitude];
13885
+ this._setState(this._following ? "active" : "idle");
13886
+ if (recenter && this._map) {
13887
+ const zoom = options.zoom === null ? this._map.getZoom() : options.zoom ?? 16;
13888
+ this._map.setView(latlng, zoom);
13889
+ }
13890
+ if (options.showMarker !== false)
13891
+ this._updateMarker(latlng, accuracy);
13892
+ this._map?.fire?.("locatefound", { latlng, accuracy, position });
13893
+ }
13894
+ _updateMarker(latlng, accuracy) {
13895
+ const map = this._map;
13896
+ if (!map)
13897
+ return;
13898
+ const circleFactory = map.circle ?? globalThis.tsmapCircle;
13899
+ if (typeof circleFactory !== "function")
13900
+ return;
13901
+ if (this._accuracyCircle) {
13902
+ this._accuracyCircle.setLatLng?.(latlng);
13903
+ this._accuracyCircle.setRadius?.(accuracy);
13904
+ return;
13905
+ }
13906
+ this._accuracyCircle = circleFactory.call(map, latlng, {
13907
+ radius: accuracy,
13908
+ className: "tsmap-locate-accuracy",
13909
+ interactive: false
13910
+ });
13911
+ this._accuracyCircle?.addTo?.(map);
13912
+ }
13913
+ _clearMarker() {
13914
+ this._accuracyCircle?.remove?.();
13915
+ this._accuracyCircle = undefined;
13916
+ this._marker?.remove?.();
13917
+ this._marker = undefined;
13918
+ }
13919
+ _stopFollowing() {
13920
+ if (!this._following)
13921
+ return;
13922
+ this._following = false;
13923
+ this._clearWatch();
13924
+ this._setState("idle");
13925
+ }
13926
+ _clearWatch() {
13927
+ if (this._watchId !== undefined && typeof navigator !== "undefined")
13928
+ navigator.geolocation?.clearWatch(this._watchId);
13929
+ this._watchId = undefined;
13930
+ this._following = false;
13931
+ }
13932
+ _setState(state) {
13933
+ const button = this._button;
13934
+ if (!button)
13935
+ return;
13936
+ const options = this.options;
13937
+ for (const name of ["idle", "locating", "active", "denied"])
13938
+ button.classList.remove(`${CLASS}-${name}`);
13939
+ button.classList.add(`${CLASS}-${state}`);
13940
+ const title = state === "locating" ? options.titleLocating ?? "Finding your location…" : state === "active" ? options.titleActive ?? "Following your location" : state === "denied" ? options.titleDenied ?? "Location unavailable — check browser permissions" : options.title ?? "Show your location";
13941
+ button.title = title;
13942
+ button.setAttribute("aria-label", title);
13943
+ button.setAttribute("aria-pressed", String(state === "active"));
13944
+ button.setAttribute("data-state", state);
13945
+ }
13946
+ }
13947
+ LocateControl.setDefaultOptions({
13948
+ position: "topright",
13949
+ zoom: 16,
13950
+ follow: true,
13951
+ enableHighAccuracy: true,
13952
+ timeout: 1e4,
13953
+ maximumAge: 60000,
13954
+ showMarker: true
13955
+ });
13810
13956
  // src/core-map/control/ScaleControl.ts
13811
13957
  init_DomUtil();
13812
13958
  class ScaleControl extends Control {
@@ -18445,7 +18591,8 @@ var control2 = Object.assign(factory(Control), {
18445
18591
  zoom: factory(ZoomControl),
18446
18592
  layers: factory(LayersControl),
18447
18593
  attribution: factory(AttributionControl),
18448
- scale: factory(ScaleControl)
18594
+ scale: factory(ScaleControl),
18595
+ locate: factory(LocateControl)
18449
18596
  });
18450
18597
  var tsMap = {
18451
18598
  version,
@@ -18532,132 +18679,133 @@ if (typeof window !== "undefined")
18532
18679
  window.tsMap ??= tsMap;
18533
18680
  var core_map_default = tsMap;
18534
18681
  export {
18535
- videoOverlay,
18536
- version,
18537
- vectorTileLayer,
18538
- tooltip,
18539
- toTransformation,
18540
- toPoint,
18541
- toLatLngBounds,
18542
- toLatLng,
18543
- toBounds,
18544
- tileLayer,
18545
- svgOverlay,
18546
- exports_services as services,
18547
- saveOfflineRegion,
18548
- sampleElevationBilinear,
18549
- resetDefaultCache,
18550
- rectangle,
18551
- rasterDEMLayer,
18552
- popup,
18553
- polyline,
18554
- polygon,
18555
- marker2 as marker,
18556
- map2 as map,
18557
- layerGroup,
18558
- imageOverlay,
18559
- icon,
18560
- heatmapLayer,
18561
- gridLayer,
18562
- getElevationDecoder,
18563
- getDefaultCache,
18564
- geoJson,
18565
- geoJSON,
18566
- flatten,
18567
- featureGroup,
18568
- exports_easing as easing,
18569
- earcut,
18570
- divIcon,
18571
- deviation,
18572
- core_map_default as default,
18573
- decodeTerrariumRGB,
18574
- decodeMapboxRGB,
18575
- decodeElevationGrid,
18576
- createMap,
18577
- control2 as control,
18578
- computeTileCoords,
18579
- circleMarker,
18580
- circle,
18581
- cachedFetch,
18582
- buildTerrainMesh,
18583
- ZoomControl,
18584
- WebGLUnsupportedError,
18585
- WebGLTileRenderer,
18586
- WMSTileLayer,
18587
- VideoOverlay,
18588
- VectorTileMapLayer,
18589
- exports_Util as Util,
18590
- TwoFingerRotateHandler,
18591
- TwoFingerPitchHandler,
18592
- TsMap,
18593
- Transformation,
18594
- Tooltip,
18595
- TileLayer,
18596
- TileCache,
18597
- TerrainSource,
18598
- TapHoldHandler,
18599
- SimpleCRS,
18600
- ScrollWheelZoomHandler,
18601
- ScaleControl,
18602
- SVGOverlay,
18603
- SVG,
18604
- Renderer,
18605
- Rectangle,
18606
- RasterDEMLayer,
18607
- RTree,
18608
- exports_projection as Projection,
18609
- PosAnimation,
18610
- Popup,
18611
- Polyline,
18612
- Polygon,
18613
- exports_PolyUtil as PolyUtil,
18614
- Point,
18615
- PinchZoomHandler,
18616
- Path,
18617
- MarkerDrag,
18618
- Marker,
18619
- Map2 as Map,
18620
- exports_LineUtil as LineUtil,
18621
- LayersControl,
18622
- LayerGroup,
18623
- Layer,
18624
- LatLngBounds,
18625
- LatLng,
18626
- KeyboardHandler,
18627
- KDBush,
18628
- ImageOverlay,
18629
- Icon,
18630
- HillshadeLayer,
18631
- HeatmapLayer,
18632
- Handler,
18633
- GridLayer,
18634
- GeoJSONClusterSource,
18635
- GeoJSON,
18636
- FeatureGroup,
18637
- Evented,
18638
- EarthCRS,
18639
- EPSG900913,
18640
- EPSG4326,
18641
- EPSG3857,
18642
- EPSG3395,
18643
- Draggable,
18644
- DragHandler,
18645
- DoubleClickZoomHandler,
18646
- exports_DomUtil as DomUtil,
18647
- exports_DomEvent as DomEvent,
18648
- DivOverlay,
18649
- DivIcon,
18650
- DefaultIcon,
18651
- Control,
18652
- Class,
18653
- CircleMarker,
18654
- Circle,
18655
- Canvas,
18656
- CRS,
18657
- Browser_default as Browser,
18658
- BoxZoomHandler,
18659
- Bounds,
18660
- BlanketOverlay,
18682
+ Animation,
18661
18683
  AttributionControl,
18662
- Animation
18684
+ BlanketOverlay,
18685
+ Bounds,
18686
+ BoxZoomHandler,
18687
+ Browser_default as Browser,
18688
+ CRS,
18689
+ Canvas,
18690
+ Circle,
18691
+ CircleMarker,
18692
+ Class,
18693
+ Control,
18694
+ DefaultIcon,
18695
+ DivIcon,
18696
+ DivOverlay,
18697
+ exports_DomEvent as DomEvent,
18698
+ exports_DomUtil as DomUtil,
18699
+ DoubleClickZoomHandler,
18700
+ DragHandler,
18701
+ Draggable,
18702
+ EPSG3395,
18703
+ EPSG3857,
18704
+ EPSG4326,
18705
+ EPSG900913,
18706
+ EarthCRS,
18707
+ Evented,
18708
+ FeatureGroup,
18709
+ GeoJSON,
18710
+ GeoJSONClusterSource,
18711
+ GridLayer,
18712
+ Handler,
18713
+ HeatmapLayer,
18714
+ HillshadeLayer,
18715
+ Icon,
18716
+ ImageOverlay,
18717
+ KDBush,
18718
+ KeyboardHandler,
18719
+ LatLng,
18720
+ LatLngBounds,
18721
+ Layer,
18722
+ LayerGroup,
18723
+ LayersControl,
18724
+ exports_LineUtil as LineUtil,
18725
+ LocateControl,
18726
+ Map2 as Map,
18727
+ Marker,
18728
+ MarkerDrag,
18729
+ Path,
18730
+ PinchZoomHandler,
18731
+ Point,
18732
+ exports_PolyUtil as PolyUtil,
18733
+ Polygon,
18734
+ Polyline,
18735
+ Popup,
18736
+ PosAnimation,
18737
+ exports_projection as Projection,
18738
+ RTree,
18739
+ RasterDEMLayer,
18740
+ Rectangle,
18741
+ Renderer,
18742
+ SVG,
18743
+ SVGOverlay,
18744
+ ScaleControl,
18745
+ ScrollWheelZoomHandler,
18746
+ SimpleCRS,
18747
+ TapHoldHandler,
18748
+ TerrainSource,
18749
+ TileCache,
18750
+ TileLayer,
18751
+ Tooltip,
18752
+ Transformation,
18753
+ TsMap,
18754
+ TwoFingerPitchHandler,
18755
+ TwoFingerRotateHandler,
18756
+ exports_Util as Util,
18757
+ VectorTileMapLayer,
18758
+ VideoOverlay,
18759
+ WMSTileLayer,
18760
+ WebGLTileRenderer,
18761
+ WebGLUnsupportedError,
18762
+ ZoomControl,
18763
+ buildTerrainMesh,
18764
+ cachedFetch,
18765
+ circle,
18766
+ circleMarker,
18767
+ computeTileCoords,
18768
+ control2 as control,
18769
+ createMap,
18770
+ decodeElevationGrid,
18771
+ decodeMapboxRGB,
18772
+ decodeTerrariumRGB,
18773
+ core_map_default as default,
18774
+ deviation,
18775
+ divIcon,
18776
+ earcut,
18777
+ exports_easing as easing,
18778
+ featureGroup,
18779
+ flatten,
18780
+ geoJSON,
18781
+ geoJson,
18782
+ getDefaultCache,
18783
+ getElevationDecoder,
18784
+ gridLayer,
18785
+ heatmapLayer,
18786
+ icon,
18787
+ imageOverlay,
18788
+ layerGroup,
18789
+ map2 as map,
18790
+ marker2 as marker,
18791
+ polygon,
18792
+ polyline,
18793
+ popup,
18794
+ rasterDEMLayer,
18795
+ rectangle,
18796
+ resetDefaultCache,
18797
+ sampleElevationBilinear,
18798
+ saveOfflineRegion,
18799
+ exports_services as services,
18800
+ svgOverlay,
18801
+ tileLayer,
18802
+ toBounds,
18803
+ toLatLng,
18804
+ toLatLngBounds,
18805
+ toPoint,
18806
+ toTransformation,
18807
+ tooltip,
18808
+ vectorTileLayer,
18809
+ version,
18810
+ videoOverlay
18663
18811
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ts-maps",
3
3
  "type": "module",
4
- "version": "0.3.1",
4
+ "version": "0.3.2",
5
5
  "description": "A modern vector map library.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",
@@ -90,7 +90,7 @@
90
90
  "devDependencies": {
91
91
  "bun-plugin-dtsx": "^0.11.5",
92
92
  "bunfig": "^0.15.6",
93
- "typescript": "^5.9.3",
93
+ "typescript": "^7.0.2",
94
94
  "very-happy-dom": "^0.1.4"
95
95
  },
96
96
  "lint-staged": {