noi-techpark / webcomp-parking

GNU Affero General Public License v3.0
0 stars 1 forks source link

Rethink the feature "currentLocation" #6

Closed Piiit closed 3 years ago

Piiit commented 3 years ago

UPDATE 2021-01-26

ALL DEPRECATED BELOW It seems that the coordinates are not replicated on the map, however if I select my current location it works. Are they set correctly from within the store?

https://webcomponents.opendatahub.testingmachine.eu/webcomponent/543ed85d-8280-4240-8625-4ee5102710ff

UPDATE 2021-01-20 The coordinates work now if set like currentLocation='{ "lat": 4.31, "lng": 1.26 }', that is with single quoted JSON object.

Several issues exist with that feature:

@sseppi @GnuRant @lcfd What do you think? Please comment below... The decisions should then be merged into all web-components with this feature.

Piiit commented 3 years ago

@GnuRant FYI

lcfd commented 3 years ago

@Piiit I'll give it a look

Piiit commented 3 years ago

@sseppi @GnuRant @lcfd I have change the initial comment, please have a look

lcfd commented 3 years ago

@Piiit

The json object notation is not easily understandable for web component users, this should be easier to access

This is how lit-element works, I haven't found other ways to pass down objects.

Can't understand the second point, the component should be as in the approved design. @GnuRant

Piiit commented 3 years ago

@Piiit

The json object notation is not easily understandable for web component users, this should be easier to access

This is how lit-element works, I haven't found other ways to pass down objects.

That is exactly the issue, I would not pass down objects here.

Can't understand the second point, the component should be as in the approved design. @GnuRant

The issue is that we have two position markers, we need to decide on the precedence if we do not want to show both. Or, make them distinguishable if we want to keep them

lcfd commented 3 years ago

@Piiit Ok, for the second point the system integrator has the priority. We aren't using the GPS on the startup of the component. We are using it only on the user press of the centering position button.

lcfd commented 3 years ago

@sseppi

As said in call this is a problem with the web component store way of use HTML parameters. This issue is linked to the decision of maintain this semantic lit-element w.c. way or split the parameter in two.

cc @GnuRant