[Chameleon] maptips problem

Hiten Ravani Hiten.Ravani at adaptivesystems.com.au
Tue Feb 15 17:58:14 EST 2005


Oh what an idiot i am. Sorry for that. I am using chamelion version v2.0 . I
would also like to add that i haven't been able to get the enhanced_sample
working with maptips. Everything else is working, just the maptips is not
working. I tried on IE and firefox both.

Regards,
Hiten.

-------------------------------------------------------------------
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