[ka-Map-users] init.php
Bailey
Bailey at texassabal.com
Fri Sep 14 05:04:41 EDT 2007
Hello All,
I am getting a blank page after moving files into new file structure (to
model online environment).
Shp2image works with the mapfile.
I ran init.php and receive the following:
/*init*/aszScales=new
Array('480000','240000','108000','96000','84000','72000','60000','48000','24
000','12000','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','1')}));map.resolution =
72;this.addMap( map );this.tileWidth=256;this.tileHeight=256;this.server =
'http://localhost/js/kamap/';this.tileURL =
'tile.php';this.selectMap('weather');
Does anyone have any clues as to why 'weather' is not 'ozonaSpraberry'?
Apparently the $szMap is not being reset from the default.
I think the Config.php is not seeing the $_REQUEST['map'] ? but Why?
I am calling the mapfile as follows:
My.php?map=ozonaSpraberry&cps=-2000,11000,24000&ovr=CoxOverlayPts.xml&r=pr
Part of my config.php looks like this:
$aszOzSra = array (
'title' => 'Ozona Spraberry',
'path' => '/xampp/htdocs/Projects/ozonaSpraberry.map',
'scales' => array( 480000, 240000, 108000, 96000, 84000, 72000,
60000, 48000, 24000, 12000,6000),
'format' =>'PNG'
/* Sample authorized_users entry. See auth.php for more details:
* ,'authorized_users' => array('popplace' => array('user1',
'user2'),
* 'park' => array('user1')
*/
);
$aszMapFiles = array('ozonaSpraberry' => $aszOzSra
/* Add more elements to this array to offer multiple mapfiles 'weather' =>
$aszGMap, */
);
/***************************************************************************
***
* figure out which map file to use and set up the necessary variables for
* the rest of the code to use. This does need to be done on every page
load
* unfortunately.
*
* szMap should be set to the default map file to use but can change if
* this script is called with map=<mapname>.
*/
$szMap = 'weather';
Any Ideas?
Bailey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20070914/4242e8a3/attachment.html
More information about the ka-Map-users
mailing list