javascript - Multiple FeatureType in WFS Protocol -
i pass multiple featuretypes wfs protocol in order accomplish search feature in app. idea worked fine 1 featuretype, need add 1 expand search scope. here did:
var featuretypes = ["layer_1", "layer_2"]; var wfsprotocol = new openlayers.protocol.wfs.v1_1_0({ url: url, featuretype: featuretypes, featurens: "http://mapmap.org", srsname: "epsg:3857", version: "1.1.0", extractattributes: true, isbaselayer: false, visibility: true }); wfsprotocol.read({ filter: filter, callback: processthequery, scope: [new openlayers.strategy.fixed({preload: true})], }) but still didn't work, idea?
found solution!
just combining 2 layers in 1 union. works me.
Comments
Post a Comment