camptocamp / c2cgeoportal

c2cgeoportal application
http://geomapfish.org
Other
64 stars 46 forks source link

Background layer #1654

Closed sbrunner closed 8 years ago

sbrunner commented 9 years ago

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

adube commented 8 years ago
adube commented 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 ?

sbrunner commented 8 years ago

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

adube commented 8 years ago

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 ?

sbrunner commented 8 years ago

The service URL is updated :-)

pgiraud commented 8 years ago

@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.

adube commented 8 years ago

@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.

adube commented 8 years ago

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

sbrunner commented 8 years ago

In all the layer we have a notion of UI metadata, we should use it to add an URL.

adube commented 8 years ago

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 ?

sbrunner commented 8 years ago

Yes :-)

pgiraud commented 8 years ago

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.

adube commented 8 years ago

@sbrunner Please let me know as soon as the themes webservices returns the thumbnails in the metadata. Thanks.

sbrunner commented 8 years ago

It's done, but the size isn't necessary right ...

adube commented 8 years ago

Understood.