Skip to content

Commit

Permalink
POI icons (#4)
Browse files Browse the repository at this point in the history
* added initial support for POI icons

* removed unused import

* bumped version

* poi improvements

* improved icons

* updated deps

* fixed joining categories

* added apiUrl and fetchParameters

* fixed multiple calling of flyTo/fitBounds

* prevented duplicate keys

* implemented caching missing poi icons

* bumped version

* updated dependencies
  • Loading branch information
zdila authored Jun 13, 2023
1 parent 9637788 commit 1b851fd
Show file tree
Hide file tree
Showing 328 changed files with 828 additions and 212 deletions.
1 change: 0 additions & 1 deletion demo-leaflet.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
.maptilerGeocoding({
apiKey,
enableReverse: true,
showPlaceType: true,
})
.addTo(map);
</script>
Expand Down
1 change: 0 additions & 1 deletion demo-maplibregl.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
apiKey,
maplibregl,
enableReverse: true,
showPlaceType: true,
});

map.addControl(gc);
Expand Down
337 changes: 188 additions & 149 deletions package-lock.json

Large diffs are not rendered by default.

27 changes: 14 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@maptiler/geocoding-control",
"version": "0.0.90",
"version": "0.0.91",
"type": "module",
"author": {
"name": "Martin Ždila",
Expand Down Expand Up @@ -44,6 +44,7 @@
"clean": "rm -rf dist dist.svelte",
"pack": "npm run clean && npm run build && cd dist && npm pack",
"pub": "npm run clean && npm run build && cd dist && npm publish",
"pub-next": "npm run clean && npm run build && cd dist && npm publish --tag next",
"cdn-pr": "npm run clean && npm run build && ./create-cdn-pr.sh",
"preview": "vite preview",
"check": "svelte-check --tsconfig ./tsconfig.json"
Expand Down Expand Up @@ -85,32 +86,32 @@
"devDependencies": {
"@maptiler/sdk": "^1.0.12",
"@sveltejs/package": "^2.0.2",
"@sveltejs/vite-plugin-svelte": "^2.3.0",
"@sveltejs/vite-plugin-svelte": "^2.4.1",
"@tsconfig/svelte": "^4.0.1",
"@turf/buffer": "^6.5.0",
"@turf/difference": "^6.5.0",
"@turf/union": "^6.5.0",
"@types/geojson": "^7946.0.10",
"@types/leaflet": "^1.9.3",
"@types/react": "^18.2.6",
"@types/react-dom": "^18.2.4",
"concurrently": "^8.0.1",
"@types/react": "^18.2.12",
"@types/react-dom": "^18.2.5",
"concurrently": "^8.2.0",
"esm-env": "^1.0.0",
"leaflet": "^1.9.4",
"maplibre-gl": "^3.0.0",
"maplibre-gl": "^3.0.1",
"prettier": "^2.8.8",
"prettier-plugin-organize-imports": "^3.2.2",
"prettier-plugin-svelte": "^2.10.0",
"prettier-plugin-svelte": "^2.10.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"renamer": "^4.0.0",
"sass": "^1.62.1",
"sass": "^1.63.3",
"svelte": "^3.59.1",
"svelte-check": "^3.3.2",
"svelte-preprocess": "^5.0.3",
"tslib": "^2.5.2",
"typescript": "^5.0.4",
"vite": "^4.3.8"
"svelte-check": "^3.4.3",
"svelte-preprocess": "^5.0.4",
"tslib": "^2.5.3",
"typescript": "^5.1.3",
"vite": "^4.3.9"
},
"peerDependencies": {
"@maptiler/sdk": "^1",
Expand Down
1 change: 1 addition & 0 deletions public/icons/10pin.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/9pin.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/advertising_column.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/aerialway.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/aerodrome.12.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/airfield.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/airport.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/alcohol.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/alcohol_shop.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/alpinehut.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/american_football.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/amusement_arcade.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/amusement_park.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/apartment.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/aquarium.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/archaeological_site.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions public/icons/area.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/art.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/arts_centre.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/artwork.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/atm.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/attraction.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/audioguide.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/bag.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/bakery.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/bank.svg
1 change: 1 addition & 0 deletions public/icons/bar.svg
1 change: 1 addition & 0 deletions public/icons/bbq.svg
Loading

0 comments on commit 1b851fd

Please sign in to comment.