<br><br>On Tuesday, December 27, 2011, rscxdev <<a href="mailto:rscxdev@gmx.de">rscxdev@gmx.de</a>> wrote:<br>> Hello<br>><br>> i'm struggling a few hours now with the following problem:<br>><br>> I use a vector layer + BBOX strategy to get features when panning/zooming<br>
> the map:<br>><br>><br>> var prot = new OpenLayers.Protocol.HTTP({<br>> url: getfeat_url,<br>> readWithPOST: true,<br>> params: {<br>
><br>> ... (a few parameters for the request)<br>><br>> },<br>> format: new JSON({<br>> 'internalProjection': new OpenLayers.Projection("EPSG:900913"),<br>
> 'externalProjection': new OpenLayers.Projection("EPSG:4326")<br>> })<br>><br>> });<br>><br>> var feat_layer = new OpenLayers.Layer.Vector("Features", {<br>
> strategies: [new OL_BBOX({resFactor: 1.1})],<br>> protocol: prot,<br>> styleMap: styleMap<br>><br>> });<br>><br>> var osm_layer = new OpenLayers.Layer.OSM.Mapnik("Mapnik");<br>
> map.addLayers([osm_layer, feat_layer]);<br>><br>> (standard code which you can find in examples)<br>><br>> I used this code in openlayers 2.10 and all was fine.<br>> Now i changed to openlayers 2.11 and all is working fine except for features<br>
> that aren't loaded when moving the map.<br>> But<br>> - if i set visibility of the feature layer to false, then to true, the<br>> features are loaded.<br>> - if i zoomed in/out, the features are loaded.<br>
> Only, when i move the map, no feature is loaded (there's no HTTP request<br>> resp.).<br>><br>> I read other posts concerning similar problems and therefore tried to set<br>> ratio (in BBOX class) to 1, to 1.4, to 1.8, but the problem remained. Also<br>
> changing the maxfeatures parameter of the HTTP class didnt solve the<br>> problem.<br>><br>> Could someone give me a hint how to solve this, please?<br><br>Hi<br><br>Any chance to view a live example demonstrating the problem?<br>
<br><br>-- <br>Eric Lemoine<br><br>Camptocamp France SAS<br>Savoie Technolac, BP 352<br>73377 Le Bourget du Lac, Cedex<br><br>Tel : 00 33 4 79 44 44 96<br>Mail : <a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br>
<a href="http://www.camptocamp.com">http://www.camptocamp.com</a><br><br>