Skip to content

Releases: perliedman/leaflet-control-geocoder

3.1.0

21 Dec 09:52
Compare
Choose a tag to compare

3.1.0 (2024-12-21)

  • Implement Azure Maps Geocoder (#351) (bf04a88), closes #351
  • azure: add to README (8e1da50)
  • azure: add types, add unit test (d1183f4)
  • azure: update to leaflet-control-geocoder 3.0.0 (0951831)
  • build: fix tsc --target ES2020 (51ed3ea)
  • CHANGELOG: clarify "Migrate from callbacks to async-await" (6e869c8)
  • demo: modernize code (756dc27)
  • GitHub Actions: Node.js 22 (9ba93ff)
  • nominatim: use shorthand property for htmlTemplate (04031ac)
  • tsc: --skipLibCheck (4edf909)

3.0.1

21 Dec 09:52
Compare
Choose a tag to compare

3.0.1 (2024-12-17)

  • build: fix Control.Geocoder.css (9bfaa0f), closes #355
  • demo: fix geocoder.reverse usage (503e6fc)

3.0.0

21 Dec 09:52
Compare
Choose a tag to compare

3.0.0 (2024-12-15)

  • GitHub Actions: Node.js 20.x (89bb618)
  • Migrate from callbacks to async-await (6f7ccf5)
  • Migrate from XMLHttpRequest to fetch API (fe751be)
  • Migrate to URLSearchParams (fa13fcb)
  • package: Migrate build to vite (0e6ed14)
  • package: build types using tsc (2211a73)
  • Add response types to geocoders (2232046)
  • npm i --lockfile-version 3 --frozen-lockfile (471932c)
  • Run Prettier on codebase (fbcdad6)
  • Use a more precise input type (#331) (44cd093), closes #331
  • bing: deprecated notice (ce88eab)
  • bing: fix serviceUrl (053e5a2)
  • bing: replace jsonp with AJAX (09f6a4e)
  • ESLint: prefer-arrow-callback (b41a7fb)
  • build: remove bower.json file (6259608)
  • package: npm audit fix (5032da9)
  • package: update devDependencies (dee11f3)
  • tests: Migrate unit tests to Vitest (d997740)
  • fix: bingMaps uri (#342) (be056ab), closes #342
Migrate from callbacks to Promise

-geocoder.geocode(query, callback);
+geocoder.geocode(query).then(callback);

-geocoder.reverse(latlng, scale, callback);
+geocoder.reverse(latlng, scale).then(callback);

Migrate from callbacks to async-await

-geocoder.geocode(query, callback);
+const results = await geocoder.geocode(query);

-geocoder.reverse(latlng, scale, callback);
+const results = await geocoder.reverse(latlng, scale);

2.4.0

06 Feb 18:53
Compare
Choose a tag to compare

2.4.0 (2022-02-06)

  • export { Geocoder, geocoder, geocoders } (ec17333)

2.3.0

06 Nov 10:31
Compare
Choose a tag to compare

2.3.0 (2021-05-25)

  • Specify TypeScript declaration file (1183518)

2.2.0

08 Mar 19:31
Compare
Choose a tag to compare

2.2.0 (2021-03-08)

2.1.0

10 Dec 22:53
Compare
Choose a tag to compare

2.1.0 (2020-12-10)

2.0.1

30 Nov 21:14
Compare
Choose a tag to compare

2.0.1 (2020-11-30)

2.0.0

28 Nov 19:04
Compare
Choose a tag to compare

2.0.0 (2020-11-28)

  • Migrate to TypeScript
  • Generate API documentation using TypeDoc (756ae93)
  • Harmonize options constructor for all geocoders (e4659b5)
  • Use geocodingQueryParams in all geocoders (84d764a)
  • Use reverseQueryParams in all geocoders (9240331)
  • Replace PNG and GIF files with SVG URIs (#298) (1ec9ab5), closes #298
  • photon: update to photon.komoot.io (e4b3082)
  • mapbox: add location properties to reverse geocode (#286) (3398c8c), closes #286
  • demos: add unpkg.com demo (2418679)
  • demos: add esbuild demo (2e0553f)
  • demos: upgrade to webpack 5 (b600cad)
  • tests: Migrate unit tests to Jest (5b64c34)
  • package: Enable compressed-size-action for PRs (fdf6df0), closes #283
  • package: Enable GitHub Actions (c98745e)
  • package: Migrate build to microbundle (fc0eff9)

BREAKING CHANGE

  • All geocoders accept a single options object as constructor parameter. The options objects extends the interface GeocoderOptions. The apiKey string constructors of some geocoders have been removed.
  • reverse now returns bbox in field called bbox (previously bounds)