[ka-Map-users] Adding Multiple maps

Delfos, Jacob Jacob.Delfos at maunsell.com
Wed Jul 19 02:00:48 EDT 2006


>From what it looks like, you are re-defining $aszGMap.  So once you
create 'Map2', your 'Map1' is lost.  Also, you don't build the
$aszMapFiles array properly. Try this:
 
$aszGMap1 = array (
  'title' => 'Map1',
  'path' => '../../Map1.map',
  'scales' => array( 40000000, 25000000, 12000000, 7500000, 3000000,
1000000 ),
 );
$aszGMap2 = array (
  'title' => 'Map2',
  'path' => '../../Map2.map',
  'scales' => array( 40000000, 25000000, 12000000, 7500000, 3000000,
1000000 ),
 );

 $aszMapFiles = array( 'Map1' => $aszGMap, 'Map2' => $aszGMap2);
 
If you still have errors, let us know what they are.
 
regards,
 
Jacob
 


________________________________

	From: ka-map-users-bounces at lists.maptools.org
[mailto:ka-map-users-bounces at lists.maptools.org] On Behalf Of absar ali
	Sent: 19 July 2006 13:41
	To: ka-map-users at lists.maptools.org
	Subject: [ka-Map-users] Adding Multiple maps
	
	
	How can i add two or more maps in the combo box, i use this but
gives errors.
	 
	$aszGMap  = array (
	  'title' => 'Map1',
	  'path' => '../../Map1.map',
	  'scales' => array( 40000000, 25000000, 12000000, 7500000,
3000000, 1000000 ),
	 );
	$aszGMap  = array (
	  'title' => 'Map2',
	  'path' => '../../Map2.map',
	  'scales' => array( 40000000, 25000000, 12000000, 7500000,
3000000, 1000000 ),
	 );
	 $aszMapFiles = array( 'Map1' => $aszGMap ,  Map2' => $aszGMap
);

	
________________________________

	Groups are talking. We're listening. Check out the handy changes
to Yahoo! Groups.
<http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=41144/*http://groups.ya
hoo.com/local/newemail.html>  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20060719/2212ac04/attachment.html


More information about the ka-Map-users mailing list