@octostar/map-component 0.4.2 → 0.5.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.mjs CHANGED
@@ -2815,7 +2815,6 @@ const DEFAULT_ENDPOINTS = {
2815
2815
  satelliteTiles: ["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],
2816
2816
  satelliteAttribution: "Esri, Maxar, Earthstar Geographics",
2817
2817
  terrainTiles: ["https://s3.amazonaws.com/elevation-tiles-prod/terrarium/{z}/{x}/{y}.png"],
2818
- geocodingUrl: "https://nominatim.openstreetmap.org/search",
2819
2818
  glyphsUrl: "/fonts/{fontstack}/{range}.pbf"
2820
2819
  };
2821
2820
  const BUILT_IN_NAMES = {
@@ -2833,8 +2832,7 @@ function resolveVectorStyle(endpoint, defaultStyle) {
2833
2832
  return style ? { style, name: endpoint.name } : null;
2834
2833
  }
2835
2834
  function resolveGeocoder(endpoint) {
2836
- if (isOff(endpoint)) return null;
2837
- if (endpoint === void 0) return { url: DEFAULT_ENDPOINTS.geocodingUrl };
2835
+ if (endpoint === void 0 || isOff(endpoint)) return null;
2838
2836
  if ("provider" in endpoint) return typeof endpoint.provider === "function" ? { provider: endpoint.provider } : null;
2839
2837
  const url = nonEmpty(endpoint.url);
2840
2838
  return url ? { url } : null;
@@ -3020,7 +3018,6 @@ function DrawingToolbar({
3020
3018
  selectionOnly = false,
3021
3019
  onGoTo,
3022
3020
  onDropPoint,
3023
- showGoToButton = false,
3024
3021
  onFitToFeatures,
3025
3022
  isSelectionToolActive = true,
3026
3023
  onSelectionToolActiveChange,
@@ -9786,7 +9783,6 @@ const MapEditorCanvas = forwardRef(function MapEditorCanvas2({
9786
9783
  onViewportChange,
9787
9784
  showClearFilter = false,
9788
9785
  onClearFilter,
9789
- showGoToButton = false,
9790
9786
  onDropPoint,
9791
9787
  onSearchEngineRequest,
9792
9788
  onWorkspaceLoad,
@@ -16922,7 +16918,6 @@ const MapEditorCanvas = forwardRef(function MapEditorCanvas2({
16922
16918
  onFilterActiveChange: (active) => {
16923
16919
  filterActiveRef.current = active;
16924
16920
  },
16925
- showGoToButton,
16926
16921
  onFitToFeatures: handleFitToFeatures,
16927
16922
  onDropPoint,
16928
16923
  geocoder: endpoints == null ? void 0 : endpoints.geocoder,