Closed sbrunner closed 8 years ago
Question: est-ce que le service web des thèmes existe déjà ? Si oui, peut-on s'y connecter maintenant ou avoir un exemple d'utilisation ? Si non, peut-on avoir un aperçu d'une réponse de requête de thèmes ?
Yes, here: http://geomapfish-demo.camptocamp.net/2.0/wsgi/themes?version=2&background=background&interface=mobile Doc: https://camptocamp.github.io/c2cgeoportal/master/developer/webservices.html
As we previously talk internally it should have an angular service for this webservice, see: https://github.com/Geoportail-Luxembourg/geoportailv3/blob/master/geoportailv3/static/js/themesservice.js
Thanks.
Question(s): You say that this service has to be used to determine the base layers, but the root content returned appears to be themes. I recall hearing about a "theme selector". Is there a relationship between the theme selector and the background layer ? Shouldn't the theme selector be responsible of querying for themes to the theme service ?
The service URL is updated :-)
@adube For now, the idea is to create a Background selector for the mobile version. As designed in the mockups it should be a list with text + thumbnail which appears in a sliding box when clicking on the "background" link in the level 0 in the left menu. What I would do is follow the ngeo examples as much as possible, but instead of using a select or a bootstrap dropdown, the partial would use a ng-repeat directive. The rest should mostly be HTML in combination with css.
@pgiraud Understood.
Just to make sure, this is the mockup file I have: https://drive.google.com/open?id=0B3tnRYRfuoYib180LVJ1RzFUWDA
Okay, we're ready to evaluate this as well. Thanks.
Question : @sbrunner, we need to use a thumbnail for each background layer. How can we obtain it ? Is the theme webservice supposed to be responsible of returning an url or something ?
Thanks
In all the layer we have a notion of UI metadata, we should use it to add an URL.
Okay, so just make sure I understood correctly: you will add the thumbnail url in the themes webservice response and I'll be able to use it thereafter. Is that correct ?
Yes :-)
Just to make sure, this is the mockup file I have: https://drive.google.com/open?id=0B3tnRYRfuoYib180LVJ1RzFUWDA
The document to take into account is the following one: https://docs.google.com/document/d/1ubjfh4hxO05EYJKFOEummEia82jB7TLCJ-S926O5TC4/edit#heading=h.3bbgup6tkvqm Same images but with additional text.
@sbrunner Please let me know as soon as the themes webservices returns the thumbnails in the metadata. Thanks.
It's done, but the size isn't necessary right ...
Understood.
As in https://map.geo.admin.ch but allays visible
http://camptocamp.github.io/ngeo/master/backgroundlayer.html http://camptocamp.github.io/ngeo/master/backgroundlayerdropdown.html