GIScience / ors-map-client

Openrouteservice API web SPA client using VueJS, Vuetify and Vue2Leaflet
http://maps.openrouteservice.org
Apache License 2.0
106 stars 32 forks source link

HEAL: reducing opacity to 0 restores opacity to 1 #424

Closed GrHalbgott closed 2 months ago

GrHalbgott commented 4 months ago

If lowering the opacity of routes using the slider in the sidebar to 0, the route gets fully opaque again (seems like 0 disables the slider)

HEAL

redfrexx commented 2 months ago

@GrHalbgott Could you add a screenshot for this? I wasn't able to reproduce it but maybe I misunderstood the problem

GrHalbgott commented 2 months ago

opaqueness 0 1 opaque

When the slider is set to 0, it gets deactivated and the route can be fully seen again (the zero is greyed out). I checked that no other route is behind it.

GrHalbgott commented 2 months ago

The same applies to the standard ORS Client. I think it's not a bug, but a feature, but it's misleading: opaqueness can be customized between range 0.1 and 1 and if set to 0, it's set to default (back to 1)

TheGreatRefrigerator commented 2 months ago

it's not a bug, but a feature

well played. Yeah, currently setting sliders to 0 (or minimum value i think) deactivates them. It should still just set opacity to 0.