[OpenLayers-Users] Adjusting Zoom Level Based on Points
Tac Tacelosky
tacman at gmail.com
Tue Nov 8 08:48:48 EST 2011
As you're going through the points, keep track of the min/max x and y, then
use those values to set the extent (the boundaries).
While you can do this in Javascript, we ended up doing that calculation in
the server-side call that got the points, and sending it over with the json
that used to populate the array of points.
Tac
On Tue, Nov 8, 2011 at 8:30 AM, BalaVignesh Kasinathan <
kbalavignesh at gmail.com> wrote:
> Hi,
> I want to draw the line (route using x,y coordinate points) over the
> map as vector layer. After route drawn on map, i want to adjust the zoom
> level to show the complete route. How can i do this? Is there any direct
> way to do this? If not how to do using math calculations?
>
> Regards,
> Bala
>
> _______________________________________________
> 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/20111108/f800a93d/attachment.html
More information about the Users
mailing list