[Chameleon] LayerLabels Widget + Postgis Layer
Paul Spencer
pspencer at dmsolutions.ca
Tue Sep 6 09:18:46 EDT 2005
Interesting. I suspect your analysis is correct. There was another
post on the list regarding MapTips, which had the same problem.
I will file a bug and get both fixed in cvs.
Cheers
Paul
Geodata Analysis wrote:
> Hi list,
>
> I was trying to use the the LayerLabels widget to add labels to a
> postgis layer and i was getting the following error :*
>
> Warning*: array_keys(): The first argument should be an array in
> *C:\ms4w\apps\chameleon\htdocs\widgets\LayerLabels\LayerLabelsPopup.phtml*
> on line *178
>
> *The problem was at line 179 of
> C:\ms4w\apps\chameleon\htdocs\widgets\LayerAttributes.php
>
> $oShape = $oLayer->getShape($nTile, 0 );
>
> I changed that to: $oShape = $oLayer->getShape($nTile, 1 ); and
> everything works fine now,
>
> It seems that the index begins from 1 with postgis layers. Is that
> correct ?
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
>
--
+-----------------------------------------------------------------+
|Paul Spencer pspencer at dmsolutions.ca |
+-----------------------------------------------------------------+
|Applications & Software Development |
|DM Solutions Group Inc http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+
More information about the Chameleon
mailing list