[OpenLayers-Dev] Keeping selectFeatures of WFS layer between zooms
[OL 2.4]
Mats Norén
mats.noren at gmail.com
Thu Jun 28 16:35:05 EDT 2007
Hi,
Is there a way to keep the selectedFeatures hightlighted between zooms
when usinga WFS layer?
map = new OpenLayers.Map("map", options);
var servers = [
"http://localhost:9090/geoserver/wms?",
"http://localhost:9090/geoserver/wms?",
"http://localhost:9090/geoserver/wms?",
"http://localhost:9090/geoserver/wms?"
];
var base = new OpenLayers.Layer.WMS("XYZ",
servers,
{layers: 'sol:kommungr,sol:e4,sol:genomfar', format:'image/png',
transparent:false },
{isBaseLayer: true, projection: 'EPSG:3152'});
map.addLayer(base);
/*
var planomraden = new OpenLayers.Layer.WMS("PTY",
servers,
{layers: 'sol:planomraden', format:'image/png', transparent:true },
{isBaseLayer: false, projection: 'EPSG:3152'});
map.addLayer(planomraden);
*/
layer = new OpenLayers.Layer.WFS( "WFS",
"/geoserver/wfs",
{ typename: 'test:test'},
{ extractAttributes: true }
);
map.addLayer(layer);
var selectDetailedPlanControl = new OpenLayers.Control.SelectFeature(layer);
I can select features but as soon as I zoom the selection is gone.
Is this the intended behavior?
/Regards Mats
More information about the Dev
mailing list