[Chameleon] Problems with layer legend widget and Postgis Layer

listserver server chameleon.listserver at gmail.com
Thu Apr 13 06:45:26 EDT 2006


when i click on the layer label icon of that widget
i recive these warnings and i cannot see any attribute of layers!

Warning: Invalid argument supplied for foreach() in
C:\ms4w\apps\chameleon\htdocs\widgets\LayerAttributes.php on line 188

Warning: array_keys(): The first argument should be an array in
C:\ms4w\apps\chameleon\htdocs\widgets\LayerLabels\LayerLabelsPopup.phtml
on line 90


*------- Additional Comment
#1<http://bugzilla.maptools.org/show_bug.cgi?id=1411#c1>From
Julien-Samuel
Lacroix <jlacroix at mapgears.com> 2006-04-11 11:19 ------- *

I'm not currently setup with PoastGIS can ou try this:

In C:\ms4w\apps\chameleon\htdocs\widgets\LayerAttributes.php on line 188:

Add this if() around the foreach:

if($oShape->values)
{
    foreach($oShape->values as $key => $value)
    {
        $aszAttributes['fields'][$key] = "string";
    }
}
else
    $aszAttributes['fields'] = array();

Does it fix the problem?


*------- Additional Comment
#2<http://bugzilla.maptools.org/show_bug.cgi?id=1411#c2>From
skynewbie <chameleon.listserver at gmail.com> 2006-04-13 04:52 ------- *

Now i have not errors but in Attributes i can't find valeus!


Here is the bug report: http://bugzilla.maptools.org/show_bug.cgi?id=1411
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060413/ef2afc6d/attachment.html


More information about the Chameleon mailing list