Sign In/My Account | View Cart  
advertisement

Article:
 Build AJAX-Based Web Maps Using ka-Map
Subject: Error when Ka-map is installed
Date: 2008-01-24 03:07:26
From: AyoM

Hi,
I'm getting this same error and i've tried everything to make it work.


Warning: Invalid argument supplied for foreach() in C:\ms4w\apps\kamap-0.1.1\htdocs\init.php on line 75


Fatal error: [MapServer Error]: setExtent(): Given map extent is invalid. Check that it is in the form: minx, miny, maxx, maxy in C:\ms4w\apps\kamap-0.1.1\htdocs\init.php on line 93


When i tried installing version 1.0 i'm gettin a sample interface which looks nothing like the .0.1.1 version. Any help on this would be appreciated as i am doing my final year project using ka-map.


Previous Message Previous Message   Next Message Next Message


Titles Only Titles Only Newest First
  • Error when Ka-map is installed
    2008-12-08 06:26:34 NickInZim

    Hi,


    I also read and followed the article, and had this problem. I managed solved it after a few hours of effort. The problem is actually very easy to fix.


    In your config.php file go to line 105 (that's what it is in mine) or the line that starts "$szMap" this should say something like:
    $szMap = 'gmap';


    Change this to:
    $szMap = 'weather';


    This tells the system the default MAP file to load, therefore if it points to a non-existent file, it gives an error. Other than this the instructions are correct. Maybe the Author can add this to his instructions?




  • Error when sample application is deployed in ka map
    2008-11-07 01:01:47 muzaffari

    hi



    if i put in browser iam getting error like this.


    Warning: Invalid argument supplied for foreach() in C:\ms4w\apps\ka-map-1.0\htdocs\init.php on line 123
    /*init*/this.tileWidth=256;this.tileHeight=256;this.server = 'http://127.0.0.1/kamap/';this.tileURL = 'tile.php';this.selectMap('gmap');



    pls help me out from this.wat could be the thing.




  • Ka-map warning
    2008-02-27 20:20:38 AyoM

    hi,
    Whenever i run the init.php i get the error below


    Warning: Invalid argument supplied for foreach() in C:\ms4w\apps\ka-map-1.0\htdocs\init.php on line 123
    /*init*/this.tileWidth=256;this.tileHeight=256;this.server = 'http://localhost/kamap/';this.tileURL = 'tile.php';this.selectMap('weather');


    all changes have been made correctlybut still no solution. there seem to be many people with the same problem but no solution seems to be available. Any help will be a Godsend


Sponsored By: