Hi,
See the example (1). Use firebug to see the new requests sent (I'm
getting an error 404 on the example, but only looking at the requests
should be enough for you to understand what the BBOX does). When you
zoom in, since the new extent is within the previous one, no request
needs to
Hello,
Does anyone know how to have the map pan when adding a feature to a vector
layer so that the entire feature is in view?
Here's my code so far that works:
//define the popup
infoPopup = new OpenLayers.Popup.FramedCloud(info,
mouseLoc,
Hi,
You could register a beforefeatureselected event on your vector layer
and set the map extent according to the feature's extent. I think that
if you use the BBOX strategy, since the feature was already drawn it
should remain the same when the map automatically pan/zoom to the
feature's
Alexandre,
Thanks for your reply.
Can you explain the BBOX strategy a little more? It sounds like it will do
the trick, but I am still new to OpenLayers. It sounds like the zoom level
would change if I set the extent. (Or am I wrong?) I would just like it to
pan, similar to how the Popup