[Chameleon] maptips problem
Paul Spencer
pspencer at dmsolutions.ca
Tue Feb 15 07:40:45 EST 2005
what version of mapserver/chameleon are you using?
Hiten Ravani wrote:
> Hi
>
> I am trying to use maptips in my application , but i am getting the
> following errors.
>
> Warning: Invalid argument supplied for foreach() in
> /path/to/chameleon/htdocs/widgets/LayerAttributes.php on line 188
>
> Warning: array_keys(): The first argument should be an array in
> /path/to/chameleon/htdocs/widgets/MapTips/MapTipsPopup.phtml on line 83
>
> Warning: Invalid argument supplied for foreach() in
> /path/to/chameleon/htdocs/widgets/LayerAttributes.php on line 188
>
> Warning: array_keys(): The first argument should be an array in
> /path/to/chameleon/htdocs/widgets/MapTips/MapTipsPopup.phtml on line 83
>
> (PS : path/to chameleon has been edited in the above warnings)
> -------------------------
>
> I am basically using the same code provided in the tools_enhanced.html (in
> the samples/htdocs folder)
>
> Here is a sample of my Layer definition from the mapfile.
>
>
> LAYER
> NAME mainrivers_layer
> GROUP mainrivers
> METADATA
> "wfs_title" "Main Rivers"
> "wms_title" "Main Rivers"
> END
> CONNECTIONTYPE postgis
> CONNECTION "dbname=? host=? port=?"
> DATA "the_geom from mainrivers"
> STATUS ON
> TYPE LINE
>
> PROJECTION
> "init=epsg:4326"
> END
> DUMP TRUE
>
> TEMPLATE "ttt_query.html"
> TOLERANCE 2
> TOLERANCEUNITS PIXELS
> CLASS
> STYLE
> OUTLINECOLOR 0 3 255
> SIZE 5
> END
> END
> END #end main-rivers
>
> (PS : I have replaced the database connection parameters with ? )
>
> I don't know much abt php so wasn't able to track down the exact problem.
>
> Any help in solving this problem is greatly appreciated.
>
> Regards,
> Hiten.
> _______________________________________________
> 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