[Chameleon] ClearPoints bugs

Jason Fournier jfournier at dmsolutions.ca
Tue Dec 20 10:39:57 EST 2005


Thanks Maxi,

I've added it to bugzilla for tracking.  If you'd like to follow please cc yourself on bug #1220.

Best Regards,
Jason



Massimiliano Cannata wrote:
> 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;
>    }
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
> 
> 

-- 
________________________
Jason Fournier

DM Solutions Group Inc.
jfournier at dmsolutions.ca
www.dmsolutions.ca
613.565.5056 x18


More information about the Chameleon mailing list