[Chameleon-dev] [Bug 1220] New: [Chameleon - ClearPoints Widget] Reported Issue with ClearPoints

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Tue Dec 20 10:38:49 EST 2005


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

           Summary: [Chameleon - ClearPoints Widget] Reported Issue with
                    ClearPoints
           Product: Chameleon
           Version: 2.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Widget
        AssignedTo: chameleon-dev at lists.maptools.org
        ReportedBy: jfournier at dmsolutions.ca


I am not sure if this has been identified or addressed in 2.2 ... placing in 2.0
as a tracking bug so we don't lose it.

---------------------------------------------------
massimiliano.cannata at supsi.ch

I found that in chameleon-2.0 the widget ClearPoints doesn't work.

here the corrections that make it works for me:

I change the PerseURL function....

function  ParseURL()
   {
       parent::ParseURL();

       if ($this->isVarSet("CLEAR_POINTS") &&
           $this->getVar("CLEAR_POINTS") == "1")
       {
           $oMap = $this->moMapObject->oMap;
           $oLayer = @$oMap->getlayerbyname("MapNotesAnnotation"); //doesn't
work with "cwc_tmp_point"

           // First step, clearr all point from shape file
           if (file_exists($oLayer->data.".dbf")) //doesn't work with
$_SESSION['gszTmpPath'].session_id().".dbf"
           {
               unlink($oLayer->data.".dbf");
           }

           // Then, clear point layer from current map file
           if ($oLayer !== false)
           {
               $oLayer->set("status", MS_DELETE);

               $_SESSION["gszCurrentState"] = $this->moMapObject->saveState();
           }
                 }
             // return success
       return true;
   }



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