TransWikia.com

Verify if a WMS layer exists or not in GeoServer (OpenLayers3)

Geographic Information Systems Asked by Amí Rā on October 8, 2020

WMSsource = new ol.layer.Image({
    source: new ol.source.ImageWMS({
        url: 'http://localhost:8080/geoserver/alger_data/wms',
        params: {
            'LAYERS': 'alger_data:hotel'
        },
        serverType: 'geoserver',
        crossOrigin: "Anonymous",
        outputFormat: "application/json",
    })
});

map.addLayer(WMSsource);

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP