Zoom to Real Point

Eric Katherman vaiod at BERLOY.COM
Fri Oct 15 13:45:24 PDT 2004


Yea that is sort of what I am doing now... I have it so that the point is
zoomed to but I don't have it centered quite yet...

I am using PHP to generate the maps.

Here is a part of what I am using: (It makes no sense to my not so math
friendly brain what this is doing)

$right_brdr = ($link[0] + ($_COOKIE["CONF-HEIGHT"] *2));
$left_brdr = ($link[0] - ($_COOKIE["GIS_CONF-HEIGHT"] ));
$top_brdr = ($link[1] + ($_COOKIE["GIS_CONF-WIDTH"] /2));
$bottom_brdr = ($link[1] - ($_COOKIE["GIS_CONF-HEIGHT"] *2));

The cookie values are set currently at 800x600.

I then just either take the user to the map or present them with links if
several answers to the query are available (e.g. Central & 7th Ave or 7th St)

> Brute force approach?
> figure out the new window extents that surround the point and use those as
> the extents to draw the new map.
>
> > ----------
> > From:       UMN MapServer Users List[SMTP:MAPSERVER-USERS at LISTS.UMN.EDU]
> > on behalf of Eric Katherman[SMTP:vaiod at BERLOY.COM]
> > Reply To:   Eric Katherman
> > Sent:       Friday, October 15, 2004 3:32 PM
> > To:         MAPSERVER-USERS at LISTS.UMN.EDU
> > Subject:    [UMN_MAPSERVER-USERS] Zoom to Real Point
> >
> > Okay, I have been looking into this for over 24 hours now and can't find
> > the
> > solution and am sure there is one.  I have a real point (e.g.
> > 623421.1121, 921128.2021) and want to zoom centered to that point.  What
> > am I missing?
> >
> > Eric



More information about the MapServer-users mailing list