camptocamp / GeoMapFish

6 stars 1 forks source link

Allow time to be selected on mobile for WMS time layers #67

Open maltaesousa opened 2 years ago

maltaesousa commented 2 years ago

Who requested this new feature?

SITN

Is your feature request related to a problem?

No

Describe the solution you'd like

On desktop, times can be selected for wms time layers but not on mobiles. It would be nice to have both implementations: time picker and time slider for single or range times.

EDIT:

A workaround has been found but it's not optimal:

pfanguin commented 2 years ago

@maltaesousa I was just making an issue for this ! There are several improvements to be made for mobile, maybe we can make a single issue ?

maltaesousa commented 2 years ago

I don't know @pfanguin Big issues might be harder to fund and when we will ask for money it will be more readable to have small issues. What we can do is create a mobile label so we can easily filter them?

remyguillaume commented 2 years ago

@maltaesousa @pfanguin Do you mean something like this ? https://map.geo.bs.ch/s/K0G0 It's working at BS, bit I don't think de have made any big change for this. If this is what you are looking for, I can look and share how we have configured it.

pfanguin commented 2 years ago

@maltaesousa ok perfect I understand. Thanks for you response ! @remyguillaume yes exactly !

remyguillaume commented 2 years ago

@pfanguin @maltaesousa

I just looked at how we solved this in BS, and actually we've just overridden some CSS :

.gmf-layertree-node [ngeo-popover][ngeo-popover-dismiss] {
    display: flex;
}

But we are still in 2.4 for now. Perhaps this will be a little different in your version.

maltaesousa commented 2 years ago

Thanks @remyguillaume it works great! For our intance we needed to override CSS like this because the popover tilte was not being translated :

.gmf-layertree-node [ngeo-popover][ngeo-popover-dismiss] {
  display: inline;
}

.popover-header {
  display: none;
}

@pfanguin tell me if this work around is ok for you. If it is, I will close this issue.

rbovard commented 2 years ago

@maltaesousa Is it possible to push it directly in GMF or it's too "hacky"?

maltaesousa commented 2 years ago

It's too hacky:

pfanguin commented 2 years ago

@maltaesousa Yes it's work but we need some css to do this work around. It's could not be better to ask for a true integration ?

maltaesousa commented 2 years ago

Ok, so let's keep this open!