[ka-Map-users] tile.php - setExtent(): Given map extent is invalid

Bailey Bailey at texassabal.com
Sat Oct 6 17:59:59 EDT 2007


Hello everyone,

 

I'm in the process of moving my kamap application online and have come
across the following error when I test tile.php.

 

Fatal error: [MapServer Error]: setExtent(): Given map extent is invalid.
Check that it is in the form: minx, miny, maxx, maxy in
/httpdocs/js/kamap/tile.php on line 239

 

For those of you familiar with tile.php, line 239 is as follows:

$oMap->setExtent($minx,$miny,$maxx,$maxy);

 

When I run init.php everything looks fine:

/*init*/aszScales=new
Array('240000','108000','96000','84000','72000','60000','48000','24000','120
00','6000');var map = new _map({name:'ozonaSpraberry',title:'Ozona
Spraberry',currentScale:
0,units:3,resolution:72,version:'',scales:aszScales});map.setDefaultExtents(
-6180,9950,-290,13240);map.setBackgroundColor('rgb(255,255,255)');map.addLay
er(new _layer( {
name:'__base__',visible:true,opacity:100,imageformat:'png24',queryable:false
,tileSource:'auto',redrawInterval:-1,refreshInterval:-1,scales: new
Array('1','1','1','1','1','1','1','1','1','1')}));map.resolution =
72;this.addMap( map );this.tileWidth=256;this.tileHeight=256;this.server =
'http://www.txsabal.com/js/kamap/';this.tileURL =
'tile.php';this.selectMap('weather');

 

So I think config.php is correct.

 

Any Ideas?

 

Thanks,

Bailey

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20071006/4d9f9181/attachment.html


More information about the ka-Map-users mailing list