How to use wms-capabilities - 2 common examples

To help you get started, we’ve selected a few wms-capabilities examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github GlobalFishingWatch / map-client / src / app / layers / customLayerActions.js View on Github external
.then((xmlString) => {
      const capabilities = new WMSCapabilities(xmlString).toJSON()
      if (capabilities.Capability === undefined) {
        throw new Error('Error with WMS endpoint')
      }

      return {
        id,
        url,
        capabilities,
        subtype: CUSTOM_LAYERS_SUBTYPES.raster,
      }
    })
  return promise
github GlobalFishingWatch / map-client / app / src / layers / customLayerActions.js View on Github external
.then((xmlString) => {
      const capabilities = new WMSCapabilities(xmlString).toJSON();
      if (capabilities.Capability === undefined) {
        throw new Error('Error with WMS endpoint');
      }

      return {
        id,
        url,
        capabilities,
        subtype: CUSTOM_LAYERS_SUBTYPES.raster
      };
    });
  return promise;

wms-capabilities

WMS service Capabilities > JSON, based on openlayers

BSD-2-Clause
Latest version published 2 years ago

Package Health Score

50 / 100
Full package analysis

Popular wms-capabilities functions