-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dish intern #208
base: main
Are you sure you want to change the base?
Dish intern #208
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you got any questions, let me know!
packages/clients/dish/CHANGELOG.md
Outdated
@@ -3,6 +3,10 @@ | |||
## unpublished | |||
|
|||
- Feature: If a user is geolocated outside of the map's extent, the client will inform the user of why geolocation did not take effect via a textbox. | |||
- Feature: The map can now be used for internal use with specific configurations. This will be defined by the parameter `MODE` in the index.html. The parameters `internalHost`, `internalPort` and `internalPath` for the internal map must be passed in the `createMap` call. | |||
- Feature: New searches for address and parcels added. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Feature: New searches for address and parcels added. | |
- Feature: Add new searches for addresses and parcels. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
packages/clients/dish/CHANGELOG.md
Outdated
@@ -3,6 +3,10 @@ | |||
## unpublished | |||
|
|||
- Feature: If a user is geolocated outside of the map's extent, the client will inform the user of why geolocation did not take effect via a textbox. | |||
- Feature: The map can now be used for internal use with specific configurations. This will be defined by the parameter `MODE` in the index.html. The parameters `internalHost`, `internalPort` and `internalPath` for the internal map must be passed in the `createMap` call. | |||
- Feature: New searches for address and parcels added. | |||
- Feature: New background and specialist data layers added. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Feature: New background and specialist data layers added. | |
- Feature: Add new background and specialist data layers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
packages/clients/dish/CHANGELOG.md
Outdated
- Feature: The map can now be used for internal use with specific configurations. This will be defined by the parameter `MODE` in the index.html. The parameters `internalHost`, `internalPort` and `internalPath` for the internal map must be passed in the `createMap` call. | ||
- Feature: New searches for address and parcels added. | ||
- Feature: New background and specialist data layers added. | ||
- Feature: New plugins DishExportMap and InternGfi for intern mode use added. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Feature: New plugins DishExportMap and InternGfi for intern mode use added. | |
- Feature: Add new plugins DishExportMap and InternGfi for usage in the internal mode. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
packages/clients/dish/README.md
Outdated
@@ -2,14 +2,30 @@ | |||
|
|||
## Content | |||
|
|||
The client can use two different configurations which are controlled by the parameter `MODE`. `MODE="EXTERN"` will apply the configuration for the map client as the website for the public, and `MODE="INTERN"` for the map used in the internal DISH application. `MODE` is initially set and cannot be changed after hosting. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where can this be set?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
packages/clients/dish/README.md
Outdated
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interne Benutzerhinweise | ||
</v-card-text> | ||
<v-card-text> interne Benutzerhinweise </v-card-text> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is interne Benutzerhinweise
currently a placeholder?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I am currently waiting for the content that should be displayed there.
export default Vue.extend({ | ||
name: 'DishModalHints', | ||
computed: { | ||
...getSetGenerator('plugin/modal', ['closed']), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@warm-coolguy do you remember the reason why the mutation setClosed
is not being used here (as this is the same in Hint.vue
)?
maxFeatures() { | ||
const search = this.selectedGroup.find( | ||
(searchService) => | ||
searchService.categoryId === 'categoryDenkmalsucheDish' | ||
) | ||
if (search) return search.queryParameters.maxFeatures | ||
return '' | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maxFeatures() { | |
const search = this.selectedGroup.find( | |
(searchService) => | |
searchService.categoryId === 'categoryDenkmalsucheDish' | |
) | |
if (search) return search.queryParameters.maxFeatures | |
return '' | |
}, |
This is not being used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GeoJsonProperties
from import { GeoJsonProperties } from 'geojson'
is the correct type for currentProperties
as windowFeatures
is typed as GeoJsonProperties[]
and currentProperties
is typed as GeoJsonProperties
.
import { FeatureCollection, Geometry, GeometryCollection } from 'geojson' | ||
|
||
export function zoomToFeatureById( | ||
instance, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please expose MapInstance
of @polar/core
as described by this ADR as a new export and use it as a type here.
Summary
DISH client with two modes for different usage.
The mode INTERN uses a new plugins DishExportMap and a new custom gfi component InternGfi.
Both modes got two new search configurations for address search and parcel search.
New background layers were added to the EXTERN map client.
Instructions for local reproduction and review
Start the client and set
mode
in the index.html to EXTERN and INTERN for different views.Note that some services in INTERN Mode are not availaible as they have a specific intranet URL and we do not have access to that. Also, some services in INTERN are only available in VPN.