@maptiler/geocoding-control 0.0.32 → 0.0.36

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/README.md CHANGED
@@ -19,7 +19,7 @@ import maplibregl from "maplibre-gl";
19
19
  import { GeocodingControl } from "@maptiler/geocoding-control/maplibre";
20
20
  import "@maptiler/geocoding-control/dist/style.css";
21
21
 
22
- const API_KEY = "your API key";
22
+ const API_KEY = "YOUR_MAPTILER_API_KEY_HERE";
23
23
 
24
24
  const map = new maplibregl.Map({
25
25
  container: "map", // id of HTML container element
@@ -128,12 +128,12 @@ Component API matches API described above and options are exposed as component p
128
128
  <script lang="ts">
129
129
  import GeocodingControl from "@maptiler/geocoding-control/src/lib/GeocodingControl.svelte";
130
130
  import GeocodingControl from "@maptiler/geocoding-control/src/lib/GeocodingControl.svelte";
131
- import { createMaplibreMapController } from "@maptiler/geocoding-control/src/lib/maplibreMapController";
131
+ import { createMaplibreglMapController } from "@maptiler/geocoding-control/src/lib/maplibreglMapController";
132
132
  import type { MapController } from "@maptiler/geocoding-control/src/lib/types";
133
133
  import maplibregl from "maplibre-gl";
134
134
  import "maplibre-gl/dist/maplibre-gl.css";
135
135
 
136
- const apiKey = "your API key";
136
+ const apiKey = "YOUR_MAPTILER_API_KEY_HERE";
137
137
 
138
138
  let mapController: MapController;
139
139
 
@@ -146,7 +146,7 @@ Component API matches API described above and options are exposed as component p
146
146
  container,
147
147
  });
148
148
 
149
- const mapController = createMaplibreMapController(map, maplibregl);
149
+ const mapController = createMaplibreglMapController(map, maplibregl);
150
150
  }
151
151
  </script>
152
152