[Mapserver-users] Dynamic extent without mapscript
Stephen Woodbridge
woodbri at swoodbridge.com
Mon Jul 5 16:49:13 PDT 2004
You can calculate the an extent as:
xmin = X - dx;
ymin = Y - dy;
xmax = X + dx;
ymax = Y + dy;
where X, Y is the location of the vehicle and dx, dy are an appropriate
constant. you might try dx and dy = 0.013 or 0.026 to start with if your
data is in decimal degrees (DD)
-Steve W.
Jenu Abraham wrote:
> Is there anyway to set the extent of the map based on a query in the
> virtual spatial file
>
>
>
> i'm not using mapscript
> -------------
> i have positions of vehicles updated regularly in my table...
>
> i'm making the virtual spatial file dynamically using asp.net
>
> i want the map to be zoomed automatically to a certain extent when a
> customer selects a particular vehicle....
> as the vehicles are on a constant move its not possible to have a static
> extent with the closed up zoom i want.
>
> or is there anyway to calculate the extent based on the location?
> ------------
>
> Jenu
>
> _________________________________________________________________
> FREE pop-up blocking with the new MSN Toolbar get it now!
> http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list