Hi Alessandro

thanks for the hint. I experienced missing results for layers in some 
cases at certain scales (close to the display limit) without having a 
clue why it happened. I got the impression that it is only for layers 
with a different projection than the map, but I could be wrong.

The line 189
$this->map->setExtent(...

was just added once because only when applying this extent the values 
for Tolerance (and pixels as unit) are correctly taken into account. 
Maybe the patch you mention can resolve the whole thing completely. I 
will try it.

Armin



Alessandro Pasotti wrote:
> 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
> 

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to