camptocamp / ngeo

Library combining OpenLayers and AngularJS
https://camptocamp.github.io/ngeo/master/examples
MIT License
135 stars 87 forks source link

Background layers #2369

Closed rbovard closed 7 years ago

rbovard commented 7 years ago

According to the doc:

The background layers are configured in the database, with the layer group named background (by default).

Here is my config and it doesn't work:

image

I only have that:

image

Is there something else to do?

sbrunner commented 7 years ago

The layer are not in any interfaces :-(

rbovard commented 7 years ago

Thanks, it's better but I don't have the local ones:

image

sbrunner commented 7 years ago

Will be fixed with camptocamp/c2cgeoportal#2855

gnerred commented 7 years ago

Strange, I did not have this problem...

sbrunner commented 7 years ago

@gnerred it's not directly related to the background but related to the URL generation, then you are probably not in the same case as @rbovard :-)

gnerred commented 7 years ago

OK ;-)

rbovard commented 7 years ago

@sbrunner Could you please reopen this one, it's not fixed.

I have a lot of JS errors on loading:

unable to get capabilities asitvd.fond_couleur https://ows.asitvd.ch/wmts/WMTSCapabilities.xml
unable to get capabilities asitvd.fond_gris https://ows.asitvd.ch/wmts/WMTSCapabilities.xml
TypeError: Cannot read property 'u' of null
unable to get capabilities plan_cadastral https://map-demo.nyon.ch/v2/tiles/1.0.0/WMTSCapabilities-v2.xml
Cannot read property 'u' of null
TypeError: Cannot read property 'u' of null
TypeError: Cannot read property 'u' of null
unable to get capabilities cartes_nationales https://map-demo.nyon.ch/v2/tiles/1.0.0/WMTSCapabilities-v2.xml
Cannot read property 'u' of null
TypeError: Cannot read property 'u' of null
TypeError: Cannot read property 'TileMatrixSetLink' of null
unable to get capabilities orthophotos https://map-demo.nyon.ch/v2/tiles/1.0.0/WMTSCapabilities-v2.xml
Cannot read property 'TileMatrixSetLink' of null
TypeError: Cannot read property 'TileMatrixSetLink' of null
sbrunner commented 7 years ago

It's an other issue that I just open it.