function include(url) { var script = document.createElement('script'); script.setAttribute('type', 'text/javascript') script.setAttribute('src', url); script.setAttribute('id', 'mapZdOpenScript'); document.getElementsByTagName('head').item(0).appendChild(script); } var loadZdOpenUpload = 0; var pathZdscripts = "https://georasp.rw.by"; if(loadZdOpenUpload!=1 && !document.getElementById('mapZdOpenScript')) { include(pathZdscripts+"/js/library/openlayers/MapZdOpen.js"); } setTimeout(initzdmap5 = function(zdoptions5) { if(typeof zdoptions5 == 'undefined') zdoptions5 = {"atlases":"[80]","id":5,"navig":0,"is_domen":true,"language":"_ru"}; if(!loadZdOpenUpload) { setTimeout(function(){initzdmap5(zdoptions5);}, 1000); } else { var zdmap = new OpenLayers.Map('map'+zdoptions5["id"], { layers: [ new OpenLayers.Layer.OSM(null,null,{ resolutions: [1222.9924523925781, 611.4962261962891, 305.74811309814453, 152.87405654907226, 76.43702827453613, 38.218514137268066, 19.109257068634033, 9.554628534317017, 4.777314267158508, 2.388657133579254], serverResolutions: [156543.03390625, 78271.516953125, 39135.7584765625, 19567.87923828125, 9783.939619140625, 4891.9698095703125, 2445.9849047851562, 1222.9924523925781, 611.4962261962891, 305.74811309814453, 152.87405654907226, 76.43702827453613, 38.218514137268066, 19.109257068634033, 9.554628534317017, 4.777314267158508, 2.388657133579254, 1.194328566789627, 0.5971642833948135, 0.29858214169740677, 0.14929107084870338, 0.07464553542435169, 0.037322767712175846, 0.018661383856087923, 0.009330691928043961, 0.004665345964021981, 0.0023326729820109904, 0.0011663364910054952, 5.831682455027476E-4, 2.915841227513738E-4, 1.457920613756869E-4] }), new OpenLayers.Layer.WMS( "osnova:map_osnova"+zdoptions5["language"],pathZdscripts+":8443/geoserver/gwc/service/wms", {layers: 'osnova:map_osnova'+zdoptions5["language"], format: 'image/gif',transparent: "true" }, {attribution:'© Географическая основа - Государственный комитет по имуществу Республики Беларусь'}, {tileSize: new OpenLayers.Size(256,256)} ) ], projection: new OpenLayers.Projection('EPSG:900913'), maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20103291.659999993,20103291.659999993), restrictedExtent: new OpenLayers.Bounds(2580239.58399091, 6667784.20741782, 3648706.0278381063, 7592749.988653545), units: "meters", zoomOffset: 3, controls: [ new OpenLayers.Control.Navigation(), new OpenLayers.Control.Attribution() ] }); zdmap.zoomToExtent(new OpenLayers.Bounds(2580239.58399091, 6667784.20741782, 3648706.0278381063, 7592749.988653545)); if(zdoptions5["navig"]) zdmap.addControl( new OpenLayers.Control.PanZoomBar({ position: new OpenLayers.Pixel(5, 25) }) ); if (typeof window['brMapCustom5'] == 'function') brMapCustom5(zdmap); } }, 1000);