+1
Under vurdering

WMS layer definition using javascript code

Anonym 10 år siden opdateret af kuba szostak 10 år siden 1
 Would it be possible to add specific WMS layer with javascript hard coding, not turning on the layer from the WMS layer list ? Users can see the layer immediately, without need to turn off other layers from the list.
Under vurdering
You can init Your map via mapViewer.config.initConfig. See
https://github.com/kubaszostak/mapviewer/blob/gh-pages/js-mapviewer/mapviewer-config.js

You can also add line somwere in your code:
mapViewer.mapServices.add("WMS", "http://wms.gdos.gov.pl/geoserver/wms?", "WMS Map Title");


Kundesupport af UserEcho