[ka-Map-users] No tiles in CVS version?
Ed Cooley
ecooley at strategysystems.com
Wed Jan 4 17:01:40 EST 2006
Config.php in cvs contains extra functions that are needed. Copy the map
entries from your old one into the cvs version.
-----Original Message-----
From: ka-map-users-bounces at lists.maptools.org
[mailto:ka-map-users-bounces at lists.maptools.org] On Behalf Of Marc Pfister
Sent: Wednesday, January 04, 2006 12:44 PM
To: ka-map-users at lists.maptools.org
Subject: [ka-Map-users] No tiles in CVS version?
I just started experimenting with the CVS version. I'm using the map and
config.php from another Ka-Map project that works fine using the 0.1.1
snapshot.
At first, no tiles were being generated and the map would not initialize
- the legend and map picker would be blank. I then figured out that all
of the PHP scripts are looking for config.php in /include. So I fixed
that and now the map initializes - the legend is working and my mapfile
shows up in the option box. But the tiles aren't being generated. I
checked the tile cache and the folder structure has not even been
created.
The Firefox javascript console reports errors in parsing the value for
the properties 'top', 'left', 'width', and 'height'. It will also
occasionally give me an error in kamap.js in line 936 - function not
defined. I've seen it more than once but can't force it to occur.
If I just load init.php I get this:
/*init*/aszScales=new Array(30000,15000,10000,5000,2500);var map = new
_map( 'cvsLidar', 'cvsLidar', 0, 1,
aszScales);map.setDefaultExtents(6428000,2064000,6458000,2112000);map.se
tBackgroundColor('rgb(204,204,204)');map.addLayer(new _layer(
'Transportation', true, 100, 'png',false, new Array(1,1,1,1,1)
));map.addLayer(new _layer( '__base__', true, 100, 'png',false, new
Array(1,1,1,1,1)));map.resolution = 72;this.addMap( map
);this.tileWidth=200;this.tileHeight=200;this.server =
'http://www.enplan.com/mapserver/kamap-cvs/';this.tileURL =
'tile.php';this.selectMap('cvsLidar');
Katest.html gives me a blank map and all the dropdowns are empty. The
javascript console gives and error - call is not defined for line 696 of
kamap.js (call(szURL, this, this.initializeCallback);). Adding an
alertbox for szURL returns "init.php", which seems strange considering
the preceding code in kamap.js.
Any ideas?
Thanks,
Marc
--
Marc Pfister
ENPLAN
mpfister at enplan.com
530/221-0440
530/221-6963 Fax
_______________________________________________
ka-Map-users mailing list
ka-Map-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/ka-map-users
More information about the ka-Map-users
mailing list