[Chameleon-dev] [Bug 1410] New: MapTips widget: GenerateImageMap should not output <map>

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Thu Apr 6 03:19:07 EDT 2006


http://bugzilla.maptools.org/show_bug.cgi?id=1410

           Summary: MapTips widget: GenerateImageMap should not output <map>
           Product: Chameleon
           Version: 2.4
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Widget
        AssignedTo: chameleon-dev at lists.maptools.org
        ReportedBy: bartvde at xs4all.nl


The MapTips widget has a GenerateImageMap function, which also outputs the <map>
element. It would be better to output those in the DrawPublish function, since
otherwise the GenerateImageMap function cannot be used to set the content of an
existing map dynamically using innerHTML.

So proposed change:

1) in GenerateImageMap, leave out the following:

// bartvde
//$szMap = "<map name=\"".$this->mszImageMapName."\">\n";

..

// bartvde
//$szMap .= "</map>";
//$szMap .= "<map name=\"nullmap\"></map>\n";

2) add the following in DrawPublish:
if ($this->mszLayer != '')
{
  $szImageMap = $this->GenerateImageMap();
  if ($szImageMap !== false)
  {
    $szResult .= "<map name=\"".$this->mszImageMapName."\">\n";
    $szResult .= $szImageMap;
    $szResult .= "</map>";
    $szResult .= "<map name=\"nullmap\"></map>\n";
    $szResult .= "\n\n";
  }
}



------- 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