Skip to content

Commit

Permalink
version 1.0.0 (#14)
Browse files Browse the repository at this point in the history
* implemented enhanced proximity modes
* updated proximity api
* added adjustQuery
* updated dependencies
* adjustQuery for react
* cleanup
* added clearMap and clearList methods
* updated deps
* refactored proximity code to separate file
* fixed icon fallback
* added more POI icons
* fixed computing bbox
* removed fetch credentials
* updated dependencies
  • Loading branch information
zdila authored Nov 9, 2023
1 parent e18cdde commit d39ad77
Show file tree
Hide file tree
Showing 30 changed files with 761 additions and 507 deletions.
7 changes: 6 additions & 1 deletion examples/maplibregl/AppMapLibreGl.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@
// types: ["poi"],
// fetchParameters: { credentials: "include" },
iconsBaseUrl: "/icons/",
})
proximity: [
{ type: "map-center", minZoom: 12 },
{ type: "client-geolocation", minZoom: 8 },
{ type: "server-geolocation", minZoom: 8 },
],
}),
);
map.addControl(new NavigationControl({}));
Expand Down
5 changes: 5 additions & 0 deletions examples/standalone/maplibregl.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
style: "https://api.maptiler.com/maps/streets/style.json?key=" + apiKey,
center: [16.3, 49.2], // starting position [lng, lat]
zoom: 7,
proximity: [
{ type: "map-center", minZoom: 12 },
{ type: "client-geolocation" },
{ type: "server-geolocation" },
],
});

const gc = new maplibreglMaptilerGeocoder.GeocodingControl({
Expand Down
468 changes: 229 additions & 239 deletions package-lock.json

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@maptiler/geocoding-control",
"version": "0.0.100",
"version": "1.0.0",
"description": "The Javascript & TypeScript Map Control component for MapTiler Geocoding service. Easy to be integrated into any JavaScript mapping application.",
"type": "module",
"author": {
Expand Down Expand Up @@ -97,36 +97,36 @@
"./svelte/*": "./svelte/*"
},
"devDependencies": {
"@maptiler/sdk": "^1.1.2",
"@maptiler/sdk": "^1.2.0",
"@sveltejs/package": "^2.2.2",
"@sveltejs/vite-plugin-svelte": "^2.4.5",
"@sveltejs/vite-plugin-svelte": "^2.5.0",
"@tsconfig/svelte": "^5.0.2",
"@turf/buffer": "^6.5.0",
"@turf/difference": "^6.5.0",
"@turf/union": "^6.5.0",
"@types/geojson": "^7946.0.10",
"@types/leaflet": "^1.9.4",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"concurrently": "^8.2.1",
"@types/geojson": "^7946.0.13",
"@types/leaflet": "^1.9.8",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"concurrently": "^8.2.2",
"dotenv": "^16.3.1",
"esm-env": "^1.0.0",
"leaflet": "^1.9.4",
"maplibre-gl": "^3.3.1",
"maplibre-gl": "^3.5.2",
"prettier": "^3.0.3",
"prettier-plugin-organize-imports": "^3.2.3",
"prettier-plugin-svelte": "^3.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"renamer": "^4.0.0",
"replace-in-file": "^7.0.1",
"sass": "^1.66.1",
"svelte": "^4.2.0",
"svelte-check": "^3.5.1",
"replace-in-file": "^7.0.2",
"sass": "^1.69.5",
"svelte": "^4.2.2",
"svelte-check": "^3.5.2",
"svelte-preprocess": "^5.0.4",
"tslib": "^2.6.2",
"typescript": "^5.2.2",
"vite": "^4.4.9"
"vite": "^4.5.0"
},
"peerDependencies": {
"@maptiler/sdk": "^1",
Expand Down
1 change: 1 addition & 0 deletions public/icons/clinic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions public/icons/hardware.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion public/icons/mountain.svg

This file was deleted.

24 changes: 24 additions & 0 deletions public/icons/mountain_range.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions public/icons/ocean.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/parking_space.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/icons/peak.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 17 additions & 1 deletion public/icons/playground.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions public/icons/river.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions public/icons/sea.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions public/icons/stream.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d39ad77

Please sign in to comment.