////////////////////////////////////////////////
// Obfuscated by Javascript Obfuscator v.2.53 //
//        http://javascript-source.com        //
////////////////////////////////////////////////
var MAGIC_NUMBER=6356752.3142;var DEG2RAD=0.0174532922519943;var PI=3.14159267;function dd2MercMetersLng(p_lng){return MAGIC_NUMBER*(p_lng*DEG2RAD);}function dd2MercMetersLat(p_lat){if(p_lat>=85)p_lat=85;if(p_lat<=-85)p_lat=-85;return MAGIC_NUMBER*Math.log(Math.tan(((p_lat*DEG2RAD)+(PI/2))/2));}CustomGetTileUrl=function(a,b,c){if(typeof(window['this.myStyles'])=="undefined")this.myStyles="";var lULP=new GPoint(a.x*256,(a.y+1)*256);var lLRP=new GPoint((a.x+1)*256,a.y*256);var lUL=G_NORMAL_MAP.getProjection().fromPixelToLatLng(lULP,b,c);var lLR=G_NORMAL_MAP.getProjection().fromPixelToLatLng(lLRP,b,c);if(this.myMercZoomLevel!=0&&map.getZoom()<this.myMercZoomLevel){var lBbox=dd2MercMetersLng(lUL.x)+","+dd2MercMetersLat(lUL.y)+","+dd2MercMetersLng(lLR.x)+","+dd2MercMetersLat(lLR.y);var lSRS="EPSG:54004";}else{var lBbox=lUL.x+","+lUL.y+","+lLR.x+","+lLR.y;var lSRS="EPSG:4326";};var lURL=this.myBaseURL;lURL+="&REQUEST=GetMap";lURL+="&SERVICE=WMS";lURL+="&VERSION=1.1.1";lURL+="&LAYERS="+this.myLayers;lURL+="&STYLES="+this.myStyles;lURL+="&FORMAT="+this.myFormat;lURL+="&TRANSPARENT=TRUE";lURL+="&SRS="+lSRS;lURL+="&BBOX="+lBbox;lURL+="&WIDTH=256";lURL+="&HEIGHT=256";lURL+="&reaspect=false";lURL+="&filter="+this.myQuery;lURL+="&map.layer%5b"+this.myLayers+"%5d.class%5b0%5d.style%5b0%5d=COLOR+"+this.myColorRed+"+"+this.myColorGreen+"+"+this.myColorBlue;return lURL;};GetTileUrl=function(a,b,c){if(typeof(window['this.myStyles'])=="undefined")this.myStyles="";var lULP=new GPoint(a.x*256,(a.y+1)*256);var lLRP=new GPoint((a.x+1)*256,a.y*256);var lUL=G_NORMAL_MAP.getProjection().fromPixelToLatLng(lULP,b,c);var lLR=G_NORMAL_MAP.getProjection().fromPixelToLatLng(lLRP,b,c);if(this.myMercZoomLevel!=0&&map.getZoom()<this.myMercZoomLevel){var lBbox=dd2MercMetersLng(lUL.x)+","+dd2MercMetersLat(lUL.y)+","+dd2MercMetersLng(lLR.x)+","+dd2MercMetersLat(lLR.y);var lSRS="EPSG:54004";}else{var lBbox=lUL.x+","+lUL.y+","+lLR.x+","+lLR.y;var lSRS="EPSG:4326";};var lURL=this.myBaseURL;lURL+="&REQUEST=GetMap";lURL+="&SERVICE=WMS";lURL+="&VERSION=1.1.1";lURL+="&LAYERS="+this.myLayers;lURL+="&STYLES="+this.myStyles;lURL+="&FORMAT="+this.myFormat;lURL+="&TRANSPARENT=TRUE";lURL+="&SRS="+lSRS;lURL+="&BBOX="+lBbox;lURL+="&WIDTH=256";lURL+="&HEIGHT=256";lURL+="&reaspect=false";lURL+="&filter="+this.filter;return lURL;};
