Skip to content
This repository has been archived by the owner on Aug 1, 2019. It is now read-only.

Additional WMS and vector layers in the maps #610

Closed
4 tasks
asaunier opened this issue Sep 8, 2016 · 5 comments
Closed
4 tasks

Additional WMS and vector layers in the maps #610

asaunier opened this issue Sep 8, 2016 · 5 comments
Assignees
Labels
Association extra low prio Map To be closed Issue that will be closed on c2c_ui release wontfix Issue closed without be fixed
Milestone

Comments

@asaunier
Copy link
Member

asaunier commented Sep 8, 2016

I think the specs mention additional layers that should be displayed in the UI maps:

Vector layers can use the API to get the data to display using some adapted format (eg. GeoJSON or some other vector format, or even vector tiles).

The slope layer is a c2corg-hosted WMS layer using shapefiles in v5: https://github.com/c2corg/camptocamp.org/blob/master/mapdata/c2corg-wms2.map.in#L600-L639

TODO:

  • add a layertree in map directive
  • have a special service in the API to feed the vector layers?
  • install mapserver (in the UI? in the API?) and describe the slope layer in the mapfile
  • host the slopes shapefiles in some docker container?
@stef74
Copy link
Contributor

stef74 commented Oct 17, 2016

@fjacon could you please give visibility on slope layer topic ( important for ski activity).

@stef74 stef74 added this to the Beta milestone Oct 19, 2016
@asaunier asaunier modified the milestones: V6.1, Beta Oct 21, 2016
@fjacon
Copy link

fjacon commented Oct 21, 2016

To setup a mapserver and a WMS for slope layer is not included in original offer. I consider it as extra work. In any case, it is not feasible for go live.

@fjacon fjacon added the extra label Oct 21, 2016
@stef74 stef74 modified the milestones: V6.1, V6.2, V6.3, Later Dec 4, 2016
@stef74 stef74 modified the milestones: Later, V6.4 Dec 14, 2016
@AlexisDemongeot
Copy link

AlexisDemongeot commented Feb 6, 2017

@asaunier
Copy link
Member Author

asaunier commented Apr 4, 2017

We most likely don't need to set a mapserver up because:

  • waypoints/routes/... vector layers will be fed by the API services (as in the advanced search pages)
  • data tiles such as "slopes > 30°" are now provided by Swisstopo and IGN APIs, we probably don't need our own layer as in v5
  • other layers from those external service would be interesting (eg. restricted areas)

Swisstopo layers:

IGN:

@asaunier asaunier assigned asaunier and unassigned fjacon Sep 10, 2017
@asaunier
Copy link
Member Author

asaunier commented Sep 10, 2017

Possible implementation:

  1. Create an app-layertree directive (optionally?) embedded in the map directive: a bit like the app-baselayer-selector directive https://github.com/c2corg/v6_ui/blob/master/c2corg_ui/static/partials/map/map.html#L23
  2. The directive would should show a "layers" button with some icon.
  3. Clicking on the button would for instance open a modal. It could be based on ngeo.modalDirective https://camptocamp.github.io/ngeo/master/apidoc/ngeo.modalDirective.html
  4. The modal would contain a layertree based upon ngeo.LayertreeDirective. See doc at https://camptocamp.github.io/ngeo/master/apidoc/ngeo.layertreeDirective.html and example at https://camptocamp.github.io/ngeo/master/examples/layertree.html
  5. The layertree could contain a node for each document type (internal layers) as well as external WMS or WMTS layers such as IGN's or swisstopo's "slopes >30°" layers (see comments above).

Questions:

Perhaps we need to set services on the API side to get the document-types layers with a GeoJSON output: currently data are returned using a custom JSON format (with embedded GeoJSON elements for geometries), see the advanced search pages. We cannot use the latter output directly for feeding a vector layer on the map. See c2corg/v6_api#688

In addition the standard API format returns a limited number of results for each request. OK for narrow map extents but how can we manage large extents with a lot of data?
In a standard map we can't really use pagination as in the advanced search pages.
Perhaps data clustering as in http://openlayers.org/en/latest/examples/earthquake-clusters.html ?

@cbeauchesne cbeauchesne added To be closed Issue that will be closed on c2c_ui release wontfix Issue closed without be fixed labels Mar 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Association extra low prio Map To be closed Issue that will be closed on c2c_ui release wontfix Issue closed without be fixed
Projects
None yet
Development

No branches or pull requests

6 participants