[Chameleon-dev] [Bug 1562] MapDHTML: add option to determine if
image is streamed or not
bugzilla-daemon at bugzilla.maptools.org
bugzilla-daemon at bugzilla.maptools.org
Thu Aug 24 05:05:39 EDT 2006
http://bugzilla.maptools.org/show_bug.cgi?id=1562
------- Additional Comments From bartvde at xs4all.nl 2006-08-24 05:05 -------
Changes necessary:
1) MapDHTML.widget.php
a) var $mbStreaming = true;
b) $this->maAttributes["STREAMING"] = new BooleanAttribute( "STREAMING", false);
c)
if (isset($this->maParams["STREAMING"]))
{
if (strcasecmp($this->maParams["STREAMING"], "true" ) == 0 )
{
$this->mbStreaming = true;
}
else if (strcasecmp($this->maParams["STREAMING"], "false" ) == 0)
{
$this->mbStreaming = false;
}
}
d)
if ($this->mbDelayDraw)
{
if (!$this->mbStreaming) { $szStreaming = '&streaming=false'; } else {
$szStreaming = '&streaming=true'; }
$url =
WEBCOMMON."/wrapper/drawmap.php?map_session_mode=$nMapSessionMode&run_query=0&".SID.$szFatalImage.$szStreaming;
if (!$bCWCJSAPI)
$url .= "&dummy=".urlencode(microtime());
}
2) Changes in drawmap.php:
if (isset($http_form_vars['streaming']) && $http_form_vars['streaming']
== 'false')
{
// output map to webserver
$url = $oImage->saveWebImage();
// redirect to this url
header("Location: $url");
}
else
{
// output map
$url = $oImage->saveImage("");
}
That's it.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
Please do NOT reply to this email, use the link above instead to
login to bugzilla and submit your comment. Any email reply to this
address will be lost.
More information about the Chameleon-dev
mailing list