[Chameleon] Update legend with Map Notes

Julien-Samuel Lacroix jlacroix at mapgears.com
Tue Jun 8 10:15:20 EST 2010


Hi,

There was a bug in this widget with the JSAPI. It's fixed now in CVS. 
The Layer was not added to the JSAPI Map object. To fix this go in file 
chameleon/htdocs/widgets/MapNotes/MapNoites.widget.php at line 600 and 
change the following:

function {$szJsFunctionName}()
{
         goCWCJSAPI.TriggerEvent(MAP_NEW_ELEMENT_ADDED);
         MapNotesHideProperties();
}


for this:


function {$szJsFunctionName}()
{
     goCWCJSAPI.oMap.AddLayer('{$this->mszLayer}');
     goCWCJSAPI.TriggerEvent(MAP_NEW_LAYER_ADDED);
     MapNotesHideProperties();
}

Julien

Andreas Douvalis wrote:
> I use the last version of chamelon 
> fgs-chameleon-base-cvs_HEAD-linux-i386.tar.gz 7727483 Jan 28 2010 
>  
>  
> I open sample_enhanced_jsapi.phtml
>  
> When I on-off layers everything work perfect with Update widget.
>  
> But when I insert one Mapnote , when I on-off MapNotesAnnotation layer 
> then I get the error below:
>  
> goCWCJSAPI.oMap.GetLayerByName(szLayerName).GetStatus is not a function??
>  
> Any solution please?
>  
>  
>  
>  
>  
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon

-- 
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/


More information about the Chameleon mailing list