[OpenLayers-Users] Invalid bbox parameters being passed to Flickr

Andreas Hocevar ahocevar at opengeo.org
Mon Oct 15 00:19:20 PDT 2012


This kind of BBOX works with WFS servers, so the behavior you are
seeing is by design. Flickr does not handle BBOXes that cross the date
line at all. You can try to replace the 335 value with 155, and get
the same result. The easiest way to avoid this issue is to configure
your base layer with a {wrapDateLine: false} option.

Andreas.

On Thu, Oct 11, 2012 at 8:26 PM, James Morley <james at jamesmorley.net> wrote:
> I've been having problems with invalid bbox values being passed in a
> Flickr query. I assumed it was something I'd done, but I went back to
> the example I based my map on - see
> http://openlayers.org/dev/examples/strategy-bbox.html - and I've found
> it's happening there too.
>
> Basically if your map view crosses the 180th meridian the bbox
> contains values greater than 180. So I'm seeing calls to Flickr like
> http://api.flickr.com/services/rest?api_key=b5e8c0e287e678671c3d8b2c0f3ced85&format=json&method=flickr.photos.search&extras=geo%2Curl_s&per_page=10&page=1&bbox=-24.78515662135,-98.406289604099,335.21484337865,45.169582129917&jsoncallback=OpenLayers.Protocol.Script.registry.c6
>
> Has anyone come across this before?
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.


More information about the Users mailing list