[OpenLayers-Users] Re: Box from GetFeature control, can this be polygon?

MTrottier marcandre_trottier at hotmail.com
Mon Nov 21 13:55:47 EST 2011


i'm a little lazy and don't want to add many tags in my mapfiles (many
mapfiles)
and i like this solution.

I found how to pass a polygon and receive a response.
I set my control like this :

 var control_wfs = new OpenLayers.Control.GetFeature({
					id: "CASERNE",
                    protocol: protocol_wfs,
					filterType: "INTERSECTS",
					maxFeatures: 100,
					multiple: true,
					multipleKey: "shiftKey"
});

but now i had a problem when calling my control like this :
mycontrol.request(polygon);

i got this error :
this.modifiers is null
error source line: [Stopper sur une erreur] if(!this.modifiers.multiple &&
!this.modifiers.toggle) {
GetFeature.js (ligne 478) 

so now my question is, what is this modifiers ?
and there is a solution to set de callback function ? 



--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Box-from-GetFeature-control-can-this-be-polygon-tp6265591p7017534.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list