
	// Au chargement de la page initialiser la carte
	window.onload = init;

	// Definition des EPSG
	Proj4js.defs["EPSG:2154"] ="+title=RGF93 / Lambert-93     +proj=lcc                 +ellps=GRS80 +lat_1=49 +lat_2=44 +lat_0=46.5 +lon_0=3 +x_0=700000 +y_0=6600000 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs";	
	Proj4js.defs["EPSG:32620"]="+title=WGS 84 / UTM zone 20N  +proj=utm +zone=20        +ellps=WGS84 +datum=WGS84 +units=m +no_defs ";
	Proj4js.defs["EPSG:32621"]="+title=WGS 84 / UTM zone 21N  +proj=utm +zone=21        +ellps=WGS84 +datum=WGS84 +units=m +no_defs ";
	Proj4js.defs["EPSG:32622"]="+title=WGS 84 / UTM zone 22N  +proj=utm +zone=22        +ellps=WGS84 +datum=WGS84 +units=m +no_defs ";
	Proj4js.defs["EPSG:32706"]="+title=WGS 84 / UTM zone 6S   +proj=utm +zone=6  +south +ellps=WGS84 +datum=WGS84 +units=m +no_defs ";
	Proj4js.defs["EPSG:32738"]="+title=WGS 84 / UTM zone 38S  +proj=utm +zone=38 +south +ellps=WGS84 +datum=WGS84 +units=m +no_defs ";
	Proj4js.defs["EPSG:32740"]="+title=WGS 84 / UTM zone 40S  +proj=utm +zone=40 +south +ellps=WGS84 +datum=WGS84 +units=m +no_defs ";
	Proj4js.defs["EPSG:32758"]="+title=WGS 84 / UTM zone 58S  +proj=utm +zone=58 +south +ellps=WGS84 +datum=WGS84 +units=m +no_defs ";
	
	var leftExtent   = -130000;
	var rightExtent  = 1420000;
	var bottomExtent = 6030000;
	var topExtent    = 7130000;
	
	var leftRestrictedExtent   =  -10000;
	var rightRestrictedExtent  = 1270000;
	var bottomRestrictedExtent = 6030000;
	var topRestrictedExtent    = 7130000;			
	
	var mapsConfig = {
	
		"metropole" : {
			name: "M&eacute;tropole",
			select: "METROPOLE",
			mapfile: urlMapfile+"metropoleraster.map",
			//mapfile: urlTileCache,
			srs: "EPSG:2154",
			layers:  ["europe","geosignal"],
			//layers: ["rnm"],
			extent: new OpenLayers.Bounds(leftExtent, bottomExtent, rightExtent, topExtent),
			maxextent: new OpenLayers.Bounds(leftExtent, bottomExtent*0.9, rightExtent, topExtent*1.1),
			restrictedExtent: new OpenLayers.Bounds(leftRestrictedExtent, bottomRestrictedExtent, rightRestrictedExtent, topRestrictedExtent),
			resolutions: [1058.21782*2, 1058.21782, 264.66364, 132.33182, 66.13861, 26.45545, 13.22772, 13.22772/2],		
			levelMaxResolutionsWMSPrelevDept:    0,
			levelMinResolutionsWMSPrelevDept:    2,			
			levelMaxResolutionsWMSPrelevStation: 3,
			levelMinResolutionsWMSPrelevStation: 6,
			levelMaxResolutionsWFSPrelevStation: 7,			
			levelMinResolutionsWFSPrelevStation: 7,
			overview: true
	    },
	    "guadeloupe" : {
			name: "Guadeloupe",
			select: "GUADELOUPE",
			mapfile: urlMapfile+"guadeloupe.map",
			srs: "EPSG:32620",
			layers: ["guadeloupe"],
			extent: new OpenLayers.Bounds(607300, 1738000, 727000, 1839000),
			maxextent: new OpenLayers.Bounds(607300*0.9, 1738000*0.9, 727000*1.1, 1839000*1.1),
        	resolutions: [167.77166],
			levelMaxResolutionsWFSPrelevStation: 0,			
			levelMinResolutionsWFSPrelevStation: 0,        				
			overview: false          
	    },
	    "guyane" : {
			name: "Guyane",
			select: "GUYANE",
			mapfile: urlMapfile+"guyane.map",
			srs: "EPSG:32622",
			layers: ["guyane"],
			extent: new OpenLayers.Bounds(59346, 230000, 473600, 647765),
			maxextent: new OpenLayers.Bounds(59346*0.9, 230000*0.9, 473600*1.1, 647765*1.1),			
        	resolutions: [691.65],
			levelMaxResolutionsWFSPrelevStation: 0,			
			levelMinResolutionsWFSPrelevStation: 0,       				
			overview: true          
	    },		    
	    "martinique" : {
			name: "Martinique",
			select: "MARTINIQUE",
			mapfile: urlMapfile+"martinique.map",
			srs: "EPSG:32620",
			layers: ["martinique"],
			extent: new OpenLayers.Bounds(643177.5,1577028,782779.5,1660662),
			maxextent: new OpenLayers.Bounds(643177.5*0.9,1577028*0.9,782779.5*1.1,1660662*1.1),			
        	resolutions: [159],
			levelMaxResolutionsWFSPrelevStation: 0,			
			levelMinResolutionsWFSPrelevStation: 0,       				
			overview: false          
	    },
	    "mayotte" : {
			name: "Mayotte",
			select: "MAYOTTE",			
			mapfile: urlMapfile+"mayotte.map",
			srs: "EPSG:32738",
			layers: ["mayotte"],
			extent: new OpenLayers.Bounds(485000, 8560950, 547000, 8604612),
			maxextent: new OpenLayers.Bounds(485000*0.9, 8560950*0.9, 547000*1.1, 8604612*1.1),								
        	resolutions: [68.6616],
			levelMaxResolutionsWFSPrelevStation: 0,			
			levelMinResolutionsWFSPrelevStation: 0,       				
			overview: true          
	    },
	    "nouvellecaledonie" : {
			name: "Nouvelle Cal&eacute;donie",
			select: "NOUVELLE CALEDONIE",			
			mapfile: urlMapfile+"nouvellecaledonie.map",
			srs: "EPSG:32758",
			layers: ["nouvellecaledonie"],
			extent: new OpenLayers.Bounds(271000, 7470000, 865000, 7850000),
			maxextent: new OpenLayers.Bounds(271000*0.9, 7470000*0.9, 865000*1.1, 7850000*1.1),
        	resolutions: [808.5666],
			levelMaxResolutionsWFSPrelevStation: 0,			
			levelMinResolutionsWFSPrelevStation: 0,       				
			overview: false          
	    },
	    "polynesie" : {
			name: "Polyn&eacute;sie",
			select: "POLYNESIE",			
			mapfile: urlMapfile+"polynesie.map",
			srs: "EPSG:32706",
			layers: ["lim_admin","polynesie"],
			extent: new OpenLayers.Bounds(-60000, 7944435, 674827, 8436524),
			maxextent: new OpenLayers.Bounds(-60000*1.2, 7944435*0.8, 674827*1.2, 8436524*1.2),									
        	resolutions: [150.44, 1053.08],
			levelMaxResolutionsWFSPrelevStation: 0,			
			levelMinResolutionsWFSPrelevStation: 1,       				
			overview: true          
	    },
	    "reunion" : {
	    	name: "R&eacute;union",
			select: "LA REUNION",	    	
			mapfile: urlMapfile+"reunion.map",
			srs: "EPSG:32740",
			layers: ["reunion"],
			extent: new OpenLayers.Bounds(290926, 7626190, 404092, 7703080),
			maxextent: new OpenLayers.Bounds(290926*0.9, 7626190*0.9, 404092*1.1, 7703080*1.1),		
			resolutions: [161.255],
			levelMaxResolutionsWFSPrelevStation: 0,			
			levelMinResolutionsWFSPrelevStation: 0,      				
			overview: false     
	    },
	    "stpierremiquelon" : {
	    	name: "Saint-Pierre-et-Miquelon",
			select: "SAINT PIERRE ET MIQUELON",	    	
			mapfile: urlMapfile+"stpierremiquelon.map",
			srs: "EPSG:32621",
			layers: ["stpierremiquelon"],
			extent: new OpenLayers.Bounds(519179, 5175790, 590312, 5223380),
			maxextent: new OpenLayers.Bounds(519179*0.9, 5175790*0.9, 590312*1.1, 5223380*1.1),			
			resolutions: [85.8866*1.15],
			levelMaxResolutionsWFSPrelevStation: 0,			
			levelMinResolutionsWFSPrelevStation: 0,       				
			overview: false     
	    }	    	    
	};

