Skip to content

Commit

Permalink
added menu icon for routing tool
Browse files Browse the repository at this point in the history
  • Loading branch information
datKaMa committed Oct 25, 2024
1 parent 57d2b59 commit 1d9a0bd
Show file tree
Hide file tree
Showing 19 changed files with 223 additions and 115 deletions.
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"dbaeumer.vscode-eslint"
]
}
143 changes: 73 additions & 70 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"snowbox": "cd packages/clients/snowbox/ && vite --host",
"snowbox:build": "lerna run build --scope @polar/client-snowbox --stream",
"snowbox:build:serve": "http-server packages/clients/snowbox -o /dist/index.html",
"snowbox2:build:serve": "http-server packages/clients/snowbox2 -o /dist/index.html",
"snowbox2:dev": "cd packages/clients/snowbox2/ && vite --host",
"textLocator:build": "lerna run build --scope @polar/client-text-locator --stream",
"textLocator:build:serve": "http-server ./packages/clients/textLocator -o /dist/index.html",
"textLocator:dev": "cd packages/clients/textLocator/ && vite --host",
Expand Down
1 change: 1 addition & 0 deletions packages/clients/snowbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@polar/plugin-loading-indicator": "*",
"@polar/plugin-pins": "*",
"@polar/plugin-reverse-geocoder": "*",
"@polar/plugin-routing": "../../plugins/Routing",
"@polar/plugin-scale": "*",
"@polar/plugin-toast": "*",
"@polar/plugin-zoom": "*"
Expand Down
6 changes: 6 additions & 0 deletions packages/clients/snowbox/src/addPlugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import ReverseGeocoder from '@polar/plugin-reverse-geocoder'
import Scale from '@polar/plugin-scale'
import Toast from '@polar/plugin-toast'
import Zoom from '@polar/plugin-zoom'
import Routing from '../../../plugins/Routing'

const defaultOptions = {
displayComponent: true,
Expand Down Expand Up @@ -51,6 +52,11 @@ export const addPlugins = (core) => {
plugin: GeoLocation({ renderType: 'iconMenu' }),
id: 'geoLocation',
},
{
plugin: Routing({ renderType: 'iconMenu' }),
icon: 'fa-route',
id: 'routing',
},
{
plugin: Attributions({
renderType: 'iconMenu',
Expand Down
1 change: 1 addition & 0 deletions packages/plugins/IconMenu/src/language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const language: LanguageOption[] = [
filter: 'Filter',
layerChooser: 'Choose map',
gfi: 'Feature list',
routing: 'Routing tool'

Check failure on line 33 in packages/plugins/IconMenu/src/language.ts

View workflow job for this annotation

GitHub Actions / lint-test

Insert `,`
},
},
},
Expand Down
34 changes: 34 additions & 0 deletions packages/plugins/Routing/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "@polar/plugin-routing",
"version": "1.0",
"description": "Plugin Routing",
"license": "EUPL-1.2",
"type": "module",
"author": "Dataport AöR <[email protected]>",
"main": "src/index.ts",
"repository": {
"type": "git",
"url": "https://github.com/Dataport/polar.git",
"directory": "packages/plugins/Routing"
},
"files": [
"src/**/*",
"CHANGELOG.md"
],
"dependencies": {
"@polar/lib-idx": "*"
},
"peerDependencies": {
"@repositoryname/vuex-generators": "^1.1.2",
"ol": "^7.1.0",
"vue": "^2.6.14",
"vuex": "^3.6.2"
},
"devDependencies": {
"@polar/lib-custom-types": "^1.0.0",
"@polar/lib-idx": "^1.0.0",
"@polar/lib-passes-boundary-check": "^2.0.0",
"@polar/lib-test-mount-parameters": "^1.0.0"
}
}

Loading

0 comments on commit 1d9a0bd

Please sign in to comment.