[OpenLayers-Users] I cannot remove BBOX strategy!!

Tobias Reinicke ramotswa at gmail.com
Wed Oct 3 02:14:47 PDT 2012


Ok, but it works with bbox strategy? So run the request as is (with bbox
strategy) and look at url.

Toby

On 3 October 2012 10:11, Albert <alnooori at hotmail.com> wrote:

>
> here is my Layer:
>
> vessels = new OpenLayers.Layer.Vector("The Vessels", {
> strategies: [new OpenLayers.Strategy.BBOX({
>                            ratio: 1 // makes for easier comparison to map
> bounds
>                        })],
> styleMap: new OpenLayers.StyleMap({
>     "default": style
> }),
>
>   maxExtent: new OpenLayers.Bounds(-180, -90, 180,
> 90).transform(geographic,mercator),
>   sphericalMercator: true,
>   protocol:  new OpenLayers.Protocol.WFS({
>   url: 'http://myDomain/geoserver/wfs',
>   featureType: "Layer_1",
>   featureNS: "http://mapmap.org",
>   srsName: "EPSG:3857",
>   version: "1.1.0",
>   extractAttributes: true,
>   isBaseLayer: false,
>
>     })
>   });
>
> If I remove strategies lines, I got nothing even i firebug there is no
> requests.
> If I use Fixed strategy, I can see the request in firebug bot nothing
> appears on map.
>
> here is the Request
> URL:
> http://localhost/cgi-bin/proxy.cgi?url=http%3A%2F%2FmyIP%3A8080%2Fgeoserver%2Fwfs
>
> I don't see any bbox parameter
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.n6.nabble.com/I-cannot-remove-BBOX-strategy-tp5005899p5006035.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20121003/bdc20ae7/attachment.html>


More information about the Users mailing list