[Geomoose-users] How to use multiple mapbook?

Brent Fraser bfraser at geoanalytic.com
Tue Jan 17 09:35:58 EST 2012


In general, yes, your approach will be OK.  You may want to review the 
other things set in the settings.ini file as they will apply to all your 
users.

Good Work!

Best Regards,
Brent Fraser


On 1/17/2012 6:57 AM, maddqc wrote:
> Thanks for your quick reply M. Fraser.
>
> Right after posting this message, I've tried something else, because my
> problem is a  bit more complex then that.
>
> I have found that in the config.php there is a function "GetMapBook". So,
> when this function is called, I'm catching in the session a variable that
> contain the right name of the mapbook to load.
>
> So the new function GetMapBook is now like this:
>
> function getMapbook()
> {
> 	global $CONFIGURATION;
> 	$mapbook = new DOMDocument();
> 	$mapbook->load('../../conf/'.$_SESSION['id_org'].'_mapbook_projet.xml');
> 	return $mapbook;
> }
>
> And we have a mapbook file for each different type of user. That way, we can
> bypass the default value in the settings.ini
>
> I must say, that I use an AJAX call in the main function of the file
> compiled.js to set my variable $_SESSION['id_org'].
>
> What do you think of that solution?
>
> Thanks again!!!
>
> --
> View this message in context: http://geomoose-users.964460.n3.nabble.com/How-to-use-multiple-mapbook-tp3664006p3666147.html
> Sent from the Geomoose-users mailing list archive at Nabble.com.
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geomoose-users
>



More information about the Geomoose-users mailing list