Bug 893 - Be able to configure mapdhtml widget to output map in temporary file
: Be able to configure mapdhtml widget to output map in temporary file
Status: NEW
: Chameleon
Widget
: 1.99
: PC Windows XP
: P2 normal
: ---
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-12-08 14:42 by
Modified: 2005-02-16 07:34 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-12-08 14:42:19
Add a configuation parameter in mapdhtml (something like 
DELAYDRAW="[true|false]") that allows to output map files to temprary files 
instead of calling the drawmap.php when the page loads.

This change seems to solve a esoteric bug in IE where sometimes the map is not 
rendered.

here is an e-mail sent about the situation/solution :

The changes are minmal : here is what I did :

  1) MapDHTML.widget.php : in function GetJavascriptVariables (around line 
468) :
   comment the 3 lines and add the 3 additional lines :

     //$url = WEBCOMMON."/wrapper/drawmap.php?
map_session_mode=$nMapSessionMode&run_query=0&".SID.$szFatalImage;
        //if (!$bCWCJSAPI)
        //$url .= "&dummy=".urlencode(microtime());

        $oMap = $this->moMapObject->oMap;

        $img = $oMap->draw();
        $url = $img->saveWebImage();

  2) in MapDHTML.js : function MapLayerDivImgOnLoad

    comment the line : //url = url + "&UniqId="+unique; 

 AFAIK : this chaneg does not affect any widgets except the Query widget when 
using the persistent results anf highlight results. Maybe Paul knows more 
about other widgets.
------- Comment #1 From 2004-12-08 16:08:38 -------
e-mail from Bart :

This needs to be taken into account : I do not yet know what the problem is 
though :

Btw, I do have a lot of the following Mapserver error messages in my  Apache 
error log using this approach:

[Wed Dec 08 21:32:54 2004] [error] [client 192.168.3.4] Wed Dec 08  21:32:53 
2004 - msRASTERLayerOpen(): General error message. Attempt to  open a RASTER 
layer, but this is only supported after a raster query.\r,  referer: 
http://www.vz.geodan.nl:1111/geoservices/index.phtml

And sometimes an ECW does not turn up after zoom in, i.e. I get a complete  
empty page (no client) when zooming in on this ECW. 
------- Comment #2 From 2004-12-09 11:26:14 -------
If we are in JSAPI mode, we do not use this new functionnality. A warning is 
produced.
------- Comment #3 From 2005-02-16 07:34:44 -------
Did this end up in Chameleon 2.0?