[Chameleon] maptips problem

Hiten Ravani Hiten.Ravani at adaptivesystems.com.au
Tue Feb 15 03:08:48 EST 2005


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.


More information about the Chameleon mailing list