Il 21:52, venerdì 24 novembre 2006, Armin Burger ha scritto:
> you could write both pixel and geo coordinates to the status bar or a
> DIV and see if the values you get are the ones expected and plausible.
> And also display the map width/height after resize (eg. in a div or via
> alert).
>
> armin
>
> Alessandro Pasotti wrote:
> > Hi,
> >
> > I'm experiencing the following problem: I use identify on a point layer
> > and it works ok just after opening the webgis, but after a window resize
> > it does'nt work anymore.
> >
> > It seems like it'sending wrong image coordinates, any hint on how to
> > debug this?
> >
> > Thanks in advance.

Hello,

I investigated this problem some more and I discovered that the image 
coordinates and extent are correct but map scale is not calculated correctly 
by mapscript.

It seems that explicitely setting map size and calling preparequery 
recalculate scale correctly:

After
http://svn.pmapper.net/trac/browser/pmapper/trunk/incphp/query/query.php#L190

            $this->map->setSize($this->mapwidth, $this->mapheight);
            $this->map->preparequery();


I'm not 100% sure this solve the issue, because it happens somewhat 
erratically if you zoom in or out after resizing or maximizing the window.

Here working with
MapServer version 4.10.0

-- 
Alessandro Pasotti
itOpen - "Open Solutions for the Net Age"
w3:  www.itopen.it
Linux User# 167502

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to