ts-maps 0.3.0 → 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;
@@ -9736,7 +9736,6 @@ var init_Map = __esm(() => {
9736
9736
  _initControlPos;
9737
9737
  _clearControlPos;
9738
9738
  _addLayers;
9739
- closePopup;
9740
9739
  initialize(id, options) {
9741
9740
  options = setOptions(this, options);
9742
9741
  this._handlers = [];
@@ -11871,23 +11870,23 @@ init_LatLngBounds();
11871
11870
  init_Point();
11872
11871
  var exports_LineUtil = {};
11873
11872
  __export(exports_LineUtil, {
11874
- simplify: () => simplify,
11875
- polylineCenter: () => polylineCenter,
11876
- pointToSegmentDistance: () => pointToSegmentDistance,
11877
- isFlat: () => isFlat,
11878
- closestPointOnSegment: () => closestPointOnSegment,
11879
- clipSegment: () => clipSegment,
11880
- _sqClosestPointOnSegment: () => _sqClosestPointOnSegment,
11873
+ _getBitCode: () => _getBitCode,
11881
11874
  _getEdgeIntersection: () => _getEdgeIntersection,
11882
- _getBitCode: () => _getBitCode
11875
+ _sqClosestPointOnSegment: () => _sqClosestPointOnSegment,
11876
+ clipSegment: () => clipSegment,
11877
+ closestPointOnSegment: () => closestPointOnSegment,
11878
+ isFlat: () => isFlat,
11879
+ pointToSegmentDistance: () => pointToSegmentDistance,
11880
+ polylineCenter: () => polylineCenter,
11881
+ simplify: () => simplify
11883
11882
  });
11884
11883
 
11885
11884
  // src/core-map/geometry/PolyUtil.ts
11886
11885
  var exports_PolyUtil = {};
11887
11886
  __export(exports_PolyUtil, {
11888
- polygonCenter: () => polygonCenter,
11887
+ centroid: () => centroid,
11889
11888
  clipPolygon: () => clipPolygon,
11890
- centroid: () => centroid
11889
+ polygonCenter: () => polygonCenter
11891
11890
  });
11892
11891
  init_LatLng();
11893
11892
  init_LatLngBounds();
@@ -12162,10 +12161,10 @@ init_TerrainSource();
12162
12161
  // src/core-map/geo/projection/index.ts
12163
12162
  var exports_projection = {};
12164
12163
  __export(exports_projection, {
12165
- SphericalMercator: () => SphericalMercator,
12166
- Mercator: () => Mercator,
12164
+ Globe: () => Globe,
12167
12165
  LonLat: () => LonLat,
12168
- Globe: () => Globe
12166
+ Mercator: () => Mercator,
12167
+ SphericalMercator: () => SphericalMercator
12169
12168
  });
12170
12169
 
12171
12170
  // src/core-map/geo/projection/Projection.Globe.ts
@@ -12324,26 +12323,26 @@ class SimpleCRS extends CRS {
12324
12323
  // src/core-map/services/index.ts
12325
12324
  var exports_services = {};
12326
12325
  __export(exports_services, {
12327
- valhallaMatrix: () => valhallaMatrix,
12328
- valhallaDirections: () => valhallaDirections,
12329
- defaultMatrix: () => defaultMatrix,
12330
- defaultIsochrone: () => defaultIsochrone,
12331
- defaultGeocoder: () => defaultGeocoder,
12332
- defaultDirections: () => defaultDirections,
12333
- ValhallaMatrix: () => ValhallaMatrix,
12334
- ValhallaIsochrone: () => ValhallaIsochrone,
12335
- ValhallaDirections: () => ValhallaDirections,
12336
- PhotonGeocoder: () => PhotonGeocoder,
12337
- OSRMMatrix: () => OSRMMatrix,
12338
- OSRMDirections: () => OSRMDirections,
12339
- NominatimGeocoder: () => NominatimGeocoder,
12340
- MaptilerGeocoder: () => MaptilerGeocoder,
12341
- MapboxMatrix: () => MapboxMatrix,
12342
- MapboxIsochrone: () => MapboxIsochrone,
12343
- MapboxGeocoder: () => MapboxGeocoder,
12344
- MapboxDirections: () => MapboxDirections,
12326
+ GoogleDirections: () => GoogleDirections,
12345
12327
  GoogleGeocoder: () => GoogleGeocoder,
12346
- 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
12347
12346
  });
12348
12347
 
12349
12348
  // src/core-map/services/providers/Google.ts
@@ -13808,6 +13807,152 @@ LayersControl.setDefaultOptions({
13808
13807
  return nameA < nameB ? -1 : nameB < nameA ? 1 : 0;
13809
13808
  }
13810
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
+ });
13811
13956
  // src/core-map/control/ScaleControl.ts
13812
13957
  init_DomUtil();
13813
13958
  class ScaleControl extends Control {
@@ -18415,7 +18560,7 @@ init_storage();
18415
18560
  init_GLContext();
18416
18561
  init_WebGLTileRenderer();
18417
18562
  // src/core-map/index.ts
18418
- var version = "0.3.0";
18563
+ var version = "0.3.1";
18419
18564
  function factory(Ctor) {
18420
18565
  return (...args) => new Ctor(...args);
18421
18566
  }
@@ -18446,7 +18591,8 @@ var control2 = Object.assign(factory(Control), {
18446
18591
  zoom: factory(ZoomControl),
18447
18592
  layers: factory(LayersControl),
18448
18593
  attribution: factory(AttributionControl),
18449
- scale: factory(ScaleControl)
18594
+ scale: factory(ScaleControl),
18595
+ locate: factory(LocateControl)
18450
18596
  });
18451
18597
  var tsMap = {
18452
18598
  version,
@@ -18533,132 +18679,133 @@ if (typeof window !== "undefined")
18533
18679
  window.tsMap ??= tsMap;
18534
18680
  var core_map_default = tsMap;
18535
18681
  export {
18536
- videoOverlay,
18537
- version,
18538
- vectorTileLayer,
18539
- tooltip,
18540
- toTransformation,
18541
- toPoint,
18542
- toLatLngBounds,
18543
- toLatLng,
18544
- toBounds,
18545
- tileLayer,
18546
- svgOverlay,
18547
- exports_services as services,
18548
- saveOfflineRegion,
18549
- sampleElevationBilinear,
18550
- resetDefaultCache,
18551
- rectangle,
18552
- rasterDEMLayer,
18553
- popup,
18554
- polyline,
18555
- polygon,
18556
- marker2 as marker,
18557
- map2 as map,
18558
- layerGroup,
18559
- imageOverlay,
18560
- icon,
18561
- heatmapLayer,
18562
- gridLayer,
18563
- getElevationDecoder,
18564
- getDefaultCache,
18565
- geoJson,
18566
- geoJSON,
18567
- flatten,
18568
- featureGroup,
18569
- exports_easing as easing,
18570
- earcut,
18571
- divIcon,
18572
- deviation,
18573
- core_map_default as default,
18574
- decodeTerrariumRGB,
18575
- decodeMapboxRGB,
18576
- decodeElevationGrid,
18577
- createMap,
18578
- control2 as control,
18579
- computeTileCoords,
18580
- circleMarker,
18581
- circle,
18582
- cachedFetch,
18583
- buildTerrainMesh,
18584
- ZoomControl,
18585
- WebGLUnsupportedError,
18586
- WebGLTileRenderer,
18587
- WMSTileLayer,
18588
- VideoOverlay,
18589
- VectorTileMapLayer,
18590
- exports_Util as Util,
18591
- TwoFingerRotateHandler,
18592
- TwoFingerPitchHandler,
18593
- TsMap,
18594
- Transformation,
18595
- Tooltip,
18596
- TileLayer,
18597
- TileCache,
18598
- TerrainSource,
18599
- TapHoldHandler,
18600
- SimpleCRS,
18601
- ScrollWheelZoomHandler,
18602
- ScaleControl,
18603
- SVGOverlay,
18604
- SVG,
18605
- Renderer,
18606
- Rectangle,
18607
- RasterDEMLayer,
18608
- RTree,
18609
- exports_projection as Projection,
18610
- PosAnimation,
18611
- Popup,
18612
- Polyline,
18613
- Polygon,
18614
- exports_PolyUtil as PolyUtil,
18615
- Point,
18616
- PinchZoomHandler,
18617
- Path,
18618
- MarkerDrag,
18619
- Marker,
18620
- Map2 as Map,
18621
- exports_LineUtil as LineUtil,
18622
- LayersControl,
18623
- LayerGroup,
18624
- Layer,
18625
- LatLngBounds,
18626
- LatLng,
18627
- KeyboardHandler,
18628
- KDBush,
18629
- ImageOverlay,
18630
- Icon,
18631
- HillshadeLayer,
18632
- HeatmapLayer,
18633
- Handler,
18634
- GridLayer,
18635
- GeoJSONClusterSource,
18636
- GeoJSON,
18637
- FeatureGroup,
18638
- Evented,
18639
- EarthCRS,
18640
- EPSG900913,
18641
- EPSG4326,
18642
- EPSG3857,
18643
- EPSG3395,
18644
- Draggable,
18645
- DragHandler,
18646
- DoubleClickZoomHandler,
18647
- exports_DomUtil as DomUtil,
18648
- exports_DomEvent as DomEvent,
18649
- DivOverlay,
18650
- DivIcon,
18651
- DefaultIcon,
18652
- Control,
18653
- Class,
18654
- CircleMarker,
18655
- Circle,
18656
- Canvas,
18657
- CRS,
18658
- Browser_default as Browser,
18659
- BoxZoomHandler,
18660
- Bounds,
18661
- BlanketOverlay,
18682
+ Animation,
18662
18683
  AttributionControl,
18663
- 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
18664
18811
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ts-maps",
3
3
  "type": "module",
4
- "version": "0.3.0",
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": {