Is there any easy way to find a polyline's bounding box while using Google Maps API V3? I am working on the project where I need to update the data and has been removed from the map. It's just so easy to do bd.extend (point), where BD is a bound object and a pointing layer object. The problem occurs when I start deleting the data, I would like to change the boundary and zoom in again. Is there any functions that can do this or will I need to write something for myself?
There was absolutely no way to do this. However it appears that there is no equivalent method in it.
You can handle it by overriding the property of your Polyline MVCObject and it will be notified when the item changes. You can then calculate the boundary box using the method recommended by you.
I think Google had deliberately left such methods with the v3 API in an effort to keep the API lightweight. There was a similar lapse method.
Comments
Post a Comment