new WmsRecord(layerClass, apiRef, config, esriLayer, epsgLookup)
- Source:
Create a layer record with the appropriate geoApi layer type. Layer config should be fully merged with all layer options defined (i.e. this constructor will not apply any defaults).
Parameters:
Name | Type | Description |
---|---|---|
layerClass |
Object | the ESRI api object for wms layers |
apiRef |
Object | object pointing to the geoApi. allows us to call other geoApi functions. |
config |
Object | layer config values |
esriLayer |
Object | an optional pre-constructed layer |
epsgLookup |
function | an optional lookup function for EPSG codes (see geoService for signature) |
Methods
identify(opts) → {Object}
- Source:
Run a getFeatureInfo on a WMS layer, return the result as a promise. Fills the panelData array on resolution.
Parameters:
Name | Type | Description |
---|---|---|
opts |
Object | additional argumets like map object, clickEvent, etc. |
Returns:
an object with identify results array and identify promise resolving when identify is complete; if an empty object is returned, it will be skipped
- Type
- Object