[Chameleon-dev] [Bug 893] New: Be able to configure mapdhtml widget
to output map in temporary file
bugzilla-daemon at maptools.org
bugzilla-daemon at maptools.org
Wed Dec 8 14:42:21 EST 2004
http://www.maptools.org/bugzilla/show_bug.cgi?id=893
Summary: Be able to configure mapdhtml widget to output map in
temporary file
Product: Chameleon
Version: 1.99
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Widget
AssignedTo: chameleon-dev at lists.maptools.org
ReportedBy: yassefa at dmsolutions.ca
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.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Chameleon-dev
mailing list