[ka-Map-users] Bypassing the map chooser

Bistrais, Bob Bob.Bistrais at maine.gov
Wed Apr 8 09:34:16 EST 2009

Thank you Lorenzo!  I used the third method you listed (in startUp.js),
and it works well.

-----Original Message-----
From: Lorenzo Becchi [mailto:lorenzo at ominiverdi.com] 
Sent: Wednesday, April 08, 2009 7:33 AM
To: Bistrais, Bob
Cc: ka-map-users at lists.maptools.org
Subject: Re: [ka-Map-users] Bypassing the map chooser

some methods to have your map choosen at startup:

1) config.php
set the variable $szMap with the map name you want:
$szMap = 'gmap';

2) index.html
if you haven't altered that much startUp.js you can always use a call 
like this to your page:

3) in startUp.js
You can force this variable to let ka-map choose just the map you want:
   var szMap = 'myMapName';
instead of:
   var szMap = getQueryParam('map');

To eliminate the use of map selector you can do in a couple of way:

1) dirty
set "display:none" to the style of the select element.

2) clean
clean un startUp.js from the code of the select, look in
probably there's something more to clean


Bistrais, Bob wrote:
> I'm building a modified Ka-Map application based on the index.html 
> version of Ka-Map.  I would like to eliminate the use of the map 
> selector drop down box.  Instead, I would like the application to 
> always load a specific .Map file.  This file is listed in my 
> config.php file.
> I've been looking through the various code files but haven't figured 
> out how to do what I need to do.  Does anyone have any suggestions? 
> _______________________________________________
> 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