基于离线地图-百度地图只显示一个省份示例

1.第一个示例:

注:此示例有一个缺点,总有一个指向西北方向的线有点碍眼,待优化

<div class="visual_chart" id="allmap"></div>

<script>
// 百度地图API功能
var blist = [];

//自定义图层
setTimeout(function(){
    mapInit();
},2000);

function mapInit(){
    var map = new BMap.Map("allmap",{minZoom:7,maxZoom:14});    // 创建Map实例
    var point_ = new BMap.Point(119.117709,33.136569);
    map.centerAndZoom(point_, 7);  // 初始化地图,设置中心点坐标和地图级别
    //添加地图类型控件
    // map.addControl(
    //     new BMap.NavigationControl({ type: BMAP_NAVIGATION_CONTROL_LARGE ,anchor: BMAP_ANCHOR_BOTTOM_RIGHT})
    // );
    map.enableScrollWheelZoom(true);     //开启鼠标滚轮缩放
    // map.disableDragging();     //禁止拖拽
    locationFun(map,point_);
    getBoundary(map);
    drawBoundary(map);
}

/**
 * 定位
 * @param map
 */
function locationFun(map,point_){
    // 定义一个控件类,即function
    function ZoomControl(){
        // 默认停靠位置和偏移量
        this.defaultAnchor = BMAP_ANCHOR_BOTTOM_RIGHT;
        this.defaultOffset = new BMap.Size(10, 10);
    }
    // 通过JavaScript的prototype属性继承于BMap.Control
    ZoomControl.prototype = new BMap.Control();
    // 自定义控件必须实现自己的initialize方法,并且将控件的DOM元素返回
    // 在本方法中创建个div元素作为控件的容器,并将其添加到地图容器中
    ZoomControl.prototype.initialize = function(map){
        // 创建一个DOM元素
        var div = document.createElement("img");
        // 设置样式
        div.style.cursor = "pointer";
        div.style.width = '20px';
        div.style.height = '20px';
        div.src = '/plugins/offLineMap/bmap-offline/images/default-40x40.png';
        div.title = "还原";
        // 绑定事件
        div.onclick = function(e){
            //map.setZoom(map.getZoom() + 2);
            map.centerAndZoom(point_, 7);  // 初始化地图,设置中心点坐标和地图级别
        };
        // 添加DOM元素到地图中
        map.getContainer().appendChild(div);
        // 将DOM元素返回
        return div;
    }
    // 创建控件
    var myZoomCtrl = new ZoomControl();
    // 添加到地图当中
    map.addControl(myZoomCtrl);
}

/**
 * 边界
 * @param map
 */
function getBoundary(map){
    //江苏区域边界
    var rs = new Object();
    rs.boundaries = [];
    rs.boundaries[0] = '118.366637, 31.941536;118.362495, 31.947789;118.364649, 31.952914;118.351035, 31.959695;118.350532, 31.954019;118.356611, 31.945485;118.364423, 31.939433;118.366637, 31.941536';
    rs.boundaries[1] = '119.957761, 35.123342;119.947257, 35.001794;119.923065, 34.981825;119.901783, 34.970721;119.854293, 34.968484;119.760746, 35.026267;119.77056, 35.101601;119.803658, 35.165654;119.846254, 35.219521;119.857334, 35.220064;119.935293, 35.162046;119.957761, 35.123342\n';
    rs.boundaries[2] = '118.391244, 32.031473;118.388501, 32.033634;118.391244, 32.031473\n';
    rs.boundaries[3] = '118.391963, 32.024531;118.388426, 32.022055;118.389239, 32.025206;118.391963, 32.024531\n';
    rs.boundaries[4] = '121.570552, 32.158408;121.687102, 32.149684;121.72448, 32.143812;121.833851, 32.111104;121.92062, 32.042523;121.97107, 31.998205;121.994321, 31.963251;122.004784, 31.849841;122.013292, 31.625913;121.904817, 31.6353;121.808005, 31.65387;121.659157, 31.701794;121.638747, 31.703063;121.611435, 31.71437;121.611443, 31.706361;121.571769, 31.723846;121.54728, 31.742018;121.521549, 31.748912;121.507641, 31.758044;121.467576, 31.764292;121.436914, 31.776522;121.419115, 31.797814;121.417787, 31.800891;121.423436, 31.802948;121.417664, 31.812673;121.395614, 31.834977;121.332011, 31.873865;121.317949, 31.879217;121.304181, 31.880513;121.289971, 31.875922;121.217894, 31.842645;121.155608, 31.797708;121.108179, 31.76902;121.177866, 31.713777;121.24725, 31.673772;121.271112, 31.653548;121.330393, 31.58948;121.392798, 31.552157;121.351281, 31.521946;121.330128, 31.510778;121.329361, 31.507353;121.325823, 31.507551;121.326887, 31.512188;121.32374, 31.513547;121.320813, 31.50953;121.316181, 31.513203;121.311735, 31.512542;121.301717, 31.497927;121.288159, 31.496833;121.279019, 31.491697;121.275258, 31.493771;121.265467, 31.484617;121.260858, 31.489331;121.254015, 31.483946;121.248957, 31.497157;121.241161, 31.498997;121.236116, 31.484379;121.215714, 31.483452;121.192802, 31.467361;121.193466, 31.460643;121.173564, 31.455005;121.171348, 31.457514;121.150678, 31.448523;121.15677, 31.440965;121.170483, 31.438492;121.168602, 31.433106;121.153804, 31.426618;121.164202, 31.413481;121.153404, 31.402732;121.155073, 31.40058;121.149826, 31.398086;121.154035, 31.391151;121.120248, 31.380295;121.126278, 31.374629;121.111898, 31.372312;121.11232, 31.36102;121.113986, 31.357121;121.12279, 31.356402;121.120769, 31.348836;121.136917, 31.348043;121.139881, 31.332003;121.133168, 31.324392;121.136514, 31.308275;121.146229, 31.308622;121.150358, 31.315341;121.157348, 31.304705;121.154357, 31.303861;121.15807, 31.302064;121.157847, 31.297627;121.167809, 31.289819;121.160665, 31.282393;121.149642, 31.280708;121.150057, 31.283336;121.139792, 31.284158;121.126448, 31.291929;121.12015, 31.290179;121.109726, 31.28041;121.092968, 31.297776;121.088097, 31.277361;121.068155, 31.274234;121.069371, 31.247499;121.066495, 31.242302;121.070188, 31.237258;121.083068, 31.17091;121.074051, 31.154345;121.070542, 31.154154;121.0679, 31.158786;121.055283, 31.155957;121.054786, 31.160209;121.050532, 31.160893;121.046521, 31.143282;121.032271, 31.148287;121.024523, 31.13974;120.988733, 31.138189;120.937006, 31.147251;120.919751, 31.141646;120.885675, 31.140161;120.87788, 31.131914;120.874931, 31.122764;120.861562, 31.109895;120.863914, 31.106643;120.874928, 31.104325;120.880136, 31.106119;120.88833, 31.101021;120.897624, 31.10004;120.91044, 31.086512;120.900429, 31.064224;120.908293, 31.042065;120.908379, 31.023039;120.903087, 31.022294;120.902296, 31.01708;120.898712, 31.016096;120.899894, 31.010069;120.895017, 31.006555;120.895831, 31.002753;120.892841, 31.007382;120.874375, 31.001467;120.871836, 30.995785;120.864669, 30.995863;120.860921, 30.999473;120.853637, 30.99588;120.847833, 30.998452;120.845935, 31.006278;120.828147, 31.01209;120.813136, 31.011701;120.78015, 31.006516;120.782318, 31.001382;120.774377, 31.002307;120.772051, 30.99538;120.775123, 30.982989;120.754949, 30.975571;120.751783, 30.969411;120.74678, 30.969751;120.737654, 30.977725;120.715805, 30.978691;120.714991, 30.974223;120.70949, 30.971522;120.704438, 30.976758;120.695361, 30.970377;120.689951, 30.961292;120.706705, 30.952929;120.717146, 30.936764;120.719471, 30.891981;120.706278, 30.88875;120.708088, 30.87495;120.697116, 30.877644;120.690168, 30.890846;120.687401, 30.884028;120.67951, 30.88231;120.674657, 30.868147;120.671145, 30.86707;120.665719, 30.871818;120.662259, 30.852402;120.651274, 30.857907;120.651155, 30.861277;120.633274, 30.862378;120.615767, 30.855013;120.595243, 30.860682;120.565936, 30.837309;120.510655, 30.763783;120.495075, 30.770023;120.485485, 30.784131;120.481404, 30.792459;120.482661, 30.813249;120.471379, 30.812527;120.463373, 30.828678;120.467276, 30.833128;120.462558, 30.853888;120.449614, 30.858759;120.446662, 30.864892;120.459944, 30.874388;120.440947, 30.895201;120.445725, 30.905364;120.440796, 30.908274;120.439141, 30.916155;120.443962, 30.919461;120.442961, 30.928799;120.424472, 30.932849;120.430495, 30.90732;120.401376, 30.896654;120.384985, 30.896838;120.378776, 30.88773;120.370799, 30.886603;120.364082, 30.894541;120.367924, 30.89907;120.36641, 30.909871;120.362334, 30.910304;120.361368, 30.915819;120.365661, 30.920554;120.363086, 30.925554;120.372175, 30.929269;120.370109, 30.933321;120.365971, 30.933121;120.366519, 30.939607;120.378938, 30.948072;120.380342, 30.951437;120.376142, 30.955008;120.313242, 30.937445;120.257135, 30.932749;120.204694, 30.934957;120.141476, 30.949088;120.116036, 30.962963;120.06304, 31.009082;120.023148, 31.024246;120.001614, 31.038358;119.991945, 31.06645;119.979543, 31.07542;119.953595, 31.111382;119.947206, 31.148024;119.929123, 31.166347;119.927383, 31.17689;119.924855, 31.174451;119.90843, 31.174586;119.889867, 31.166856;119.875684, 31.168511;119.873735, 31.174659;119.867773, 31.172154;119.862181, 31.176274;119.860783, 31.173054;119.851862, 31.172768;119.844121, 31.178996;119.8379, 31.176887;119.83264, 31.18027;119.832713, 31.174334;119.826344, 31.175904;119.827141, 31.172754;119.819328, 31.169539;119.829114, 31.166398;119.830524, 31.17177;119.831493, 31.168362;119.838045, 31.166284;119.831673, 31.158265;119.813479, 31.153492;119.805517, 31.162926;119.794581, 31.160264;119.80004, 31.172357;119.793483, 31.182164;119.786215, 31.185937;119.776635, 31.18221;119.771046, 31.185633;119.771922, 31.179603;119.763412, 31.176433;119.763537, 31.17935;119.756923, 31.174876;119.750423, 31.174186;119.745067, 31.178449;119.72106, 31.175212;119.717802, 31.162768;119.709521, 31.156635;119.688612, 31.165802;119.686381, 31.170461;119.680612, 31.167863;119.674922, 31.170899;119.663244, 31.158946;119.657757, 31.160371;119.647883, 31.154523;119.649836, 31.146294;119.644775, 31.14061;119.652458, 31.141557;119.655834, 31.143662;119.654518, 31.146881;119.65852, 31.147544;119.658299, 31.13655;119.650141, 31.139876;119.645748, 31.136965;119.64396, 31.139616;119.635128, 31.13295;119.622316, 31.136412;119.608455, 31.119748;119.613935, 31.117508;119.617568, 31.109576;119.61399, 31.107848;119.613268, 31.113039;119.600956, 31.117719;119.598003, 31.117295;119.600163, 31.112853;119.597719, 31.110088;119.591749, 31.120012;119.586938, 31.114816;119.582363, 31.115797;119.585278, 31.138719;119.576173, 31.136227;119.561565, 31.15143;119.551319, 31.150983;119.542146, 31.157271;119.542195, 31.163439;119.537124, 31.166714;119.528367, 31.166551;119.522486, 31.162532;119.499771, 31.171264;119.494917, 31.169273;119.491524, 31.158379;119.484582, 31.164865;119.467883, 31.162493;119.457709, 31.17916;119.438552, 31.183323;119.437281, 31.191405;119.425616, 31.179668;119.420653, 31.179929;119.414355, 31.188679;119.401123, 31.176709;119.393443, 31.175669;119.401875, 31.198925;119.413641, 31.198678;119.415004, 31.201925;119.401461, 31.205119;119.397545, 31.197485;119.38564, 31.194169;119.370566, 31.20351;119.367758, 31.218144;119.374059, 31.227596;119.369428, 31.232294;119.369284, 31.242727;119.381219, 31.254482;119.381057, 31.264005;119.387192, 31.264926;119.387532, 31.275251;119.376975, 31.275438;119.378768, 31.286871;119.373417, 31.289998;119.373798, 31.298105;119.362967, 31.308511;119.356386, 31.306679;119.357564, 31.300927;119.353517, 31.2984;119.357613, 31.289483;119.354073, 31.283253;119.348503, 31.281512;119.352842, 31.277637;119.352992, 31.26969;119.358154, 31.266608;119.354595, 31.263109;119.34839, 31.268257;119.344134, 31.265473;119.341813, 31.269771;119.308528, 31.274864;119.296604, 31.264913;119.289167, 31.266091;119.279171, 31.259522;119.272139, 31.260821;119.269762, 31.266818;119.259819, 31.27058;119.254972, 31.261766;119.245807, 31.259988;119.237381, 31.268233;119.231596, 31.268212;119.231309, 31.274214;119.22421, 31.273325;119.224968, 31.276633;119.22221, 31.275871;119.218536, 31.280661;119.212976, 31.277196;119.211736, 31.272021;119.205784, 31.271809;119.202135, 31.276107;119.204623, 31.288419;119.208802, 31.290289;119.204913, 31.295345;119.206589, 31.300184;119.196184, 31.301886;119.191272, 31.307667;119.182043, 31.299873;119.164849, 31.300991;119.158036, 31.298178;119.160244, 31.289488;119.15419, 31.280321;119.138928, 31.268089;119.127768, 31.267443;119.118378, 31.259242;119.111839, 31.259433;119.111169, 31.239468;119.103541, 31.246449;119.092073, 31.244463;119.089639, 31.237879;119.085618, 31.237301;119.077205, 31.243249;119.066693, 31.244729;119.059707, 31.236701;119.046491, 31.246117;119.042102, 31.242162;119.024483, 31.249247;119.017264, 31.2483;119.015413, 31.242655;118.99866, 31.235906;118.988147, 31.244679;118.979827, 31.241294;118.975277, 31.245457;118.954152, 31.240757;118.924263, 31.25111;118.910027, 31.240003;118.892801, 31.236874;118.889672, 31.244913;118.878563, 31.245033;118.875464, 31.247835;118.846846, 31.242132;118.838114, 31.235503;118.831026, 31.236313;118.825881, 31.242218;118.815885, 31.240746;118.810429, 31.234796;118.801783, 31.235487;118.787235, 31.247055;118.785657, 31.267367;118.767771, 31.283855;118.735134, 31.287171;118.729267, 31.291337;118.73247, 31.297986;118.726655, 31.299538;118.723549, 31.296201;118.70669, 31.30613;118.708682, 31.308984;118.724094, 31.301506;118.725489, 31.328175;118.76124, 31.391923;118.771442, 31.394572;118.777385, 31.382876;118.775465, 31.369752;118.829776, 31.38135;118.841118, 31.387569;118.84874, 31.397669;118.85648, 31.399771;118.880556, 31.437096;118.886057, 31.449769;118.884223, 31.488136;118.890235, 31.508271;118.891361, 31.540953;118.886825, 31.54062;118.87999, 31.547868;118.878981, 31.533131;118.868507, 31.52552;118.861808, 31.527005;118.854762, 31.509247;118.848365, 31.510448;118.856197, 31.530119;118.877113, 31.539738;118.882047, 31.550875;118.881697, 31.556941;118.875286, 31.561025;118.875936, 31.563524;118.889723, 31.570491;118.887576, 31.575449;118.876568, 31.577403;118.879479, 31.578449;118.879057, 31.587523;118.88356, 31.596462;118.880415, 31.59905;118.870752, 31.597426;118.866432, 31.601158;118.876262, 31.605262;118.878321, 31.614853;118.872469, 31.617622;118.874707, 31.622;118.866701, 31.625061;118.866907, 31.632375;118.852608, 31.631401;118.848344, 31.638941;118.839988, 31.639777;118.840664, 31.637115;118.834288, 31.635156;118.826268, 31.636135;118.826001, 31.628259;118.80841, 31.626316;118.801461, 31.635695;118.796798, 31.6369;118.798315, 31.644625;118.78901, 31.661143;118.803726, 31.672454;118.797434, 31.679619;118.79215, 31.679584;118.781314, 31.687705;118.754431, 31.682666;118.754916, 31.678532;118.750035, 31.673617;118.753615, 31.669784;118.748494, 31.657504;118.748493, 31.645775;118.744307, 31.637672;118.734521, 31.639825;118.732694, 31.633544;118.725818, 31.633615;118.720414, 31.638898;118.719448, 31.649113;118.713709, 31.64506;118.698023, 31.645646;118.692851, 31.640692;118.679736, 31.647639;118.665442, 31.647145;118.650471, 31.656185;118.653751, 31.666908;118.649055, 31.67796;118.651534, 31.685068;118.670131, 31.686453;118.673218, 31.693197;118.677594, 31.693724;118.677375, 31.703545;118.68436, 31.702403;118.689831, 31.705678;118.689953, 31.709199;118.696715, 31.713178;118.697293, 31.721023;118.691927, 31.721892;118.696595, 31.72729;118.690882, 31.732022;118.658857, 31.737916;118.656845, 31.746068;118.653317, 31.745456;118.647636, 31.750926;118.650144, 31.755208;118.654341, 31.755618;118.647501, 31.765545;118.63087, 31.764422;118.623897, 31.756956;118.6157, 31.763893;118.608012, 31.763515;118.597791, 31.749998;118.579751, 31.74719;118.574878, 31.752323;118.560345, 31.736148;118.553117, 31.742171;118.545241, 31.737949;118.541714, 31.745604;118.535898, 31.74315;118.533706, 31.749098;118.526582, 31.749345;118.53469, 31.757628;118.543956, 31.757448;118.543661, 31.76565;118.552154, 31.765935;118.543615, 31.768727;118.541062, 31.773203;118.528958, 31.768099;118.515767, 31.771679;118.509703, 31.780529;118.489957, 31.785594;118.488399, 31.798288;118.499705, 31.81851;118.507358, 31.845142;118.482728, 31.855872;118.473128, 31.864167;118.471933, 31.87418;118.480882, 31.876573;118.484501, 31.888623;118.476463, 31.891372;118.458426, 31.890579;118.449464, 31.895317;118.441436, 31.906049;118.433339, 31.902258;118.427076, 31.90392;118.431195, 31.897606;118.425276, 31.890684;118.416124, 31.900719;118.416054, 31.915782;118.401133, 31.922036;118.393295, 31.915785;118.38543, 31.914508;118.379686, 31.919685;118.386205, 31.923855;118.378108, 31.934771;118.368434, 31.935496;118.375391, 31.946953;118.3731, 31.955909;118.378043, 31.964975;118.375677, 31.971762;118.389195, 31.973834;118.380006, 31.987772;118.389713, 31.985737;118.401589, 31.996777;118.396759, 32.0048;118.395589, 32.018625;118.398976, 32.02435;118.408815, 32.023271;118.405803, 32.029978;118.39759, 32.032533;118.394848, 32.029115;118.389965, 32.038739;118.396654, 32.049992;118.401817, 32.052337;118.400955, 32.056989;118.394216, 32.059581;118.394568, 32.063439;118.390585, 32.066005;118.401874, 32.071138;118.40143, 32.082554;118.410949, 32.080845;118.411467, 32.086776;118.417882, 32.086471;118.421969, 32.093963;118.438754, 32.092601;118.440848, 32.096754;118.444499, 32.094972;118.455559, 32.103725;118.470745, 32.107117;118.479744, 32.115248;118.481262, 32.122585;118.507225, 32.126429;118.501267, 32.137792;118.505476, 32.139685;118.505859, 32.146902;118.511238, 32.144606;118.512484, 32.147378;118.502658, 32.169672;118.502822, 32.182362;118.505782, 32.187101;118.515644, 32.189076;118.515944, 32.199367;118.528283, 32.194072;118.537987, 32.201923;118.546492, 32.198785;118.555213, 32.201728;118.557587, 32.205989;118.568055, 32.20341;118.570261, 32.208955;118.578696, 32.21482;118.583217, 32.213717;118.585502, 32.205526;118.597736, 32.206577;118.600527, 32.200908;118.604757, 32.205557;118.625004, 32.211325;118.635971, 32.208131;118.650446, 32.21576;118.674952, 32.243388;118.682461, 32.260741;118.671373, 32.26506;118.665655, 32.270884;118.677145, 32.292398;118.675358, 32.301444;118.665425, 32.303353;118.664695, 32.310187;118.684346, 32.323026;118.702877, 32.324214;118.702467, 32.327636;118.691017, 32.329961;118.690214, 32.333253;118.695266, 32.336589;118.709828, 32.33511;118.714137, 32.340985;118.713554, 32.345338;118.702883, 32.350131;118.706447, 32.356206;118.699184, 32.358342;118.701347, 32.362569;118.708694, 32.364286;118.70286, 32.367153;118.702321, 32.374138;118.71018, 32.374552;118.709298, 32.378857;118.703256, 32.38112;118.708233, 32.385542;118.702417, 32.389965;118.697158, 32.384041;118.684873, 32.399453;118.691852, 32.410754;118.695297, 32.425656;118.693187, 32.436322;118.6972, 32.459284;118.690712, 32.460118;118.688905, 32.465717;118.697436, 32.467682;118.697694, 32.478992;118.67908, 32.476324;118.65889, 32.48286;118.651279, 32.476533;118.63547, 32.473959;118.626846, 32.477192;118.616111, 32.476065;118.613921, 32.482627;118.606099, 32.482719;118.601199, 32.486199;118.600443, 32.508049;118.614836, 32.506882;118.624024, 32.516517;118.623466, 32.52439;118.614013, 32.52683;118.616309, 32.543599;118.582653, 32.560255;118.571311, 32.570048;118.577874, 32.592567;118.589433, 32.600557;118.601188, 32.602376;118.606506, 32.607834;118.618884, 32.600313;118.632068, 32.597116;118.642741, 32.586258;118.647732, 32.588976;118.649029, 32.594018;118.659559, 32.596948;118.663097, 32.602723;118.707644, 32.593281;118.707707, 32.605272;118.702088, 32.607305;118.70173, 32.610705;118.721353, 32.612285;118.729251, 32.616209;118.733512, 32.599639;118.742262, 32.594934;118.750747, 32.597305;118.748923, 32.604704;118.757212, 32.602699;118.761514, 32.608758;118.767305, 32.610465;118.782759, 32.604321;118.785185, 32.594282;118.794496, 32.588815;118.807844, 32.5897;118.817481, 32.606275;118.830942, 32.607927;118.830392, 32.59481;118.823143, 32.591998;118.823666, 32.588152;118.834676, 32.585922;118.835132, 32.577123;118.842503, 32.576778;118.848211, 32.580402;118.851472, 32.572833;118.861665, 32.579427;118.878546, 32.58166;118.878714, 32.589106;118.889944, 32.580842;118.890911, 32.593424;118.902667, 32.592389;118.914102, 32.596955;118.916351, 32.593156;118.906721, 32.588306;118.904218, 32.583458;118.905494, 32.567107;118.898865, 32.568088;118.894384, 32.560115;118.90639, 32.557786;118.914512, 32.56509;118.915824, 32.559494;118.922022, 32.556647;118.921643, 32.56422;118.942639, 32.564622;118.947245, 32.554423;118.961578, 32.543254;118.964514, 32.535493;118.973028, 32.533792;118.974958, 32.520886;118.984159, 32.509954;119.005086, 32.507874;119.012477, 32.520107;119.023727, 32.520857;119.02178, 32.526932;119.026017, 32.526956;119.028786, 32.522609;119.044678, 32.521935;119.047673, 32.510167;119.053452, 32.506124;119.049935, 32.500653;119.071733, 32.489887;119.07017, 32.483819;119.061191, 32.484411;119.07079, 32.480596;119.069151, 32.468143;119.075803, 32.467401;119.084256, 32.459168;119.092733, 32.45879;119.098273, 32.463342;119.097526, 32.474108;119.100731, 32.480499;119.109823, 32.47601;119.116163, 32.482236;119.129318, 32.487016;119.129814, 32.494036;119.13599, 32.494988;119.137338, 32.49918;119.151805, 32.497457;119.152892, 32.503367;119.148406, 32.504749;119.16109, 32.515179;119.156763, 32.529076;119.157427, 32.540851;119.165741, 32.542159;119.16655, 32.538415;119.173366, 32.542405;119.169327, 32.544326;119.172057, 32.549416;119.15666, 32.567269;119.167026, 32.56877;119.174668, 32.581396;119.183734, 32.583036;119.183245, 32.600008;119.195029, 32.604188;119.198997, 32.587098;119.205474, 32.588574;119.208912, 32.586179;119.21796, 32.573454;119.221875, 32.580807;119.227718, 32.583031;119.220878, 32.586695;119.219592, 32.598187;119.224791, 32.597397;119.230309, 32.600752;119.222565, 32.6084;119.230855, 32.607032;119.235097, 32.610463;119.235128, 32.61555;119.222213, 32.615448;119.217244, 32.620948;119.222819, 32.623129;119.223019, 32.627381;119.215218, 32.646039;119.217839, 32.727593;119.192437, 32.831872;119.137971, 32.831786;119.106897, 32.837006;119.083073, 32.864066;119.05949, 32.87768;119.059162, 32.886433;119.050821, 32.899207;119.050193, 32.917816;119.020162, 32.912268;119.023692, 32.930549;119.03441, 32.932015;119.035123, 32.935336;119.028623, 32.940723;119.032141, 32.948557;119.027202, 32.961661;119.015044, 32.961069;119.015274, 32.966968;118.997875, 32.967835;118.996632, 32.962578;118.971579, 32.952646;118.947128, 32.953365;118.942656, 32.944935;118.93787, 32.943631;118.913031, 32.951242;118.909468, 32.948071;118.898721, 32.947373;118.896856, 32.956466;118.900206, 32.965108;118.894787, 32.968244;118.889359, 32.964278;118.857704, 32.964234;118.85455, 32.959864;118.857597, 32.951838;118.847948, 32.951221;118.855533, 32.937742;118.8545, 32.928986;118.845904, 32.930662;118.843544, 32.919357;118.824189, 32.927196;118.81484, 32.921589;118.820312, 32.912032;118.821607, 32.89366;118.818935, 32.885388;118.812684, 32.879648;118.81961, 32.865803;118.798392, 32.860011;118.798417, 32.85643;118.787468, 32.856642;118.762596, 32.865185;118.754585, 32.865132;118.74578, 32.858916;118.754149, 32.818764;118.745443, 32.800111;118.744421, 32.778803;118.747456, 32.770625;118.766509, 32.75223;118.765954, 32.74226;118.744652, 32.739776;118.732309, 32.729649;118.727601, 32.732183;118.71381, 32.727482;118.695336, 32.736772;118.68681, 32.735505;118.663567, 32.742543;118.659517, 32.749027;118.64488, 32.751525;118.640189, 32.74422;118.635136, 32.748348;118.628141, 32.747693;118.621085, 32.744694;118.614834, 32.733856;118.585192, 32.726579;118.57959, 32.726862;118.565144, 32.737196;118.510271, 32.728598;118.498287, 32.730167;118.480331, 32.727363;118.465694, 32.732416;118.458202, 32.750003;118.450889, 32.746195;118.430742, 32.722777;118.415578, 32.722645;118.40894, 32.726091;118.40261, 32.724517;118.398607, 32.727528;118.387505, 32.724128;118.37766, 32.725816;118.372843, 32.731297;118.378327, 32.760177;118.371772, 32.778086;118.349509, 32.780072;118.340621, 32.768657;118.332047, 32.767818;118.329535, 32.770325;118.331434, 32.781647;118.327806, 32.785551;118.317009, 32.785587;118.308158, 32.790866;118.304529, 32.806442;118.312366, 32.813776;118.312669, 32.822904;118.306433, 32.832595;118.312128, 32.837881;118.304437, 32.838932;118.309745, 32.855557;118.304358, 32.857695;118.29808, 32.851351;118.291037, 32.864271;118.265714, 32.859424;118.265722, 32.855251;118.259752, 32.850842;118.25711, 32.857458;118.253081, 32.85799;118.250191, 32.876839;118.253136, 32.883325;118.246298, 32.892765;118.241439, 32.920822;118.235821, 32.932024;118.248803, 32.942903;118.30049, 32.9542;118.316434, 32.965619;118.318589, 32.97069;118.307848, 32.976402;118.273595, 32.976454;118.266641, 32.980334;118.252225, 33.000222;118.252289, 33.03706;118.245499, 33.059987;118.24046, 33.069212;118.233204, 33.066577;118.219515, 33.068317;118.223258, 33.078884;118.236196, 33.078754;118.233625, 33.090805;118.213903, 33.097177;118.23189, 33.094458;118.229522, 33.112721;118.219204, 33.111889;118.218068, 33.118296;118.210914, 33.119051;118.229211, 33.121752;118.230952, 33.182423;118.219271, 33.203606;118.201435, 33.217586;118.186792, 33.222123;118.178324, 33.221333;118.17128, 33.215951;118.16342, 33.202518;118.166188, 33.184828;118.159957, 33.175495;118.097297, 33.157328;118.075515, 33.14586;118.071336, 33.145311;118.067351, 33.153463;118.058642, 33.149797;118.056982, 33.156426;118.049155, 33.156857;118.050138, 33.144215;118.043049, 33.141593;118.042279, 33.159235;118.031294, 33.162264;118.024603, 33.170741;118.013065, 33.175394;118.012944, 33.183325;117.995808, 33.185322;117.98606, 33.208125;117.989823, 33.209152;117.992883, 33.224867;117.988673, 33.229431;117.978035, 33.235163;117.962887, 33.228171;117.9501, 33.231445;117.945768, 33.238153;117.954548, 33.257314;117.950086, 33.271223;117.977543, 33.286525;117.988654, 33.302788;117.987729, 33.31228;117.996781, 33.339827;117.981779, 33.342219;117.975753, 33.349274;117.975207, 33.355772;118.005358, 33.354785;118.01661, 33.360207;118.036033, 33.37894;118.03142, 33.383816;118.034608, 33.395755;118.021838, 33.410473;118.033899, 33.461276;118.045075, 33.474307;118.052464, 33.47754;118.050919, 33.483618;118.055033, 33.49815;118.068341, 33.496457;118.114395, 33.48105;118.115668, 33.524359;118.105593, 33.528805;118.105436, 33.534597;118.116094, 33.536646;118.12419, 33.599566;118.118688, 33.623036;118.144132, 33.641425;118.1521, 33.639122;118.154644, 33.645609;118.15165, 33.649104;118.175116, 33.669468;118.171184, 33.696867;118.174516, 33.720466;118.164879, 33.723676;118.162607, 33.72777;118.169985, 33.737662;118.180938, 33.735766;118.187694, 33.739063;118.19213, 33.751112;118.172543, 33.757418;118.154966, 33.751974;118.146441, 33.753523;118.123755, 33.769404;118.124578, 33.774705;118.120635, 33.775497;118.114764, 33.771288;118.073646, 33.771884;118.0724, 33.768175;118.05316, 33.755197;118.054929, 33.751584;118.049008, 33.756242;118.044017, 33.75512;118.036101, 33.751592;118.038276, 33.745744;118.029836, 33.74365;118.026263, 33.750666;118.020622, 33.753163;118.010227, 33.750356;118.0008, 33.754348;117.987375, 33.752146;117.979352, 33.755972;117.976599, 33.765165;117.964014, 33.76292;117.957404, 33.747592;117.960287, 33.73818;117.955088, 33.734946;117.939524, 33.73239;117.930301, 33.733936;117.929589, 33.737823;117.922142, 33.742339;117.907113, 33.740551;117.90357, 33.736406;117.907834, 33.725418;117.903206, 33.72464;117.894036, 33.727899;117.893083, 33.732121;117.88697, 33.728492;117.882208, 33.733194;117.859837, 33.741409;117.850989, 33.742555;117.837058, 33.737018;117.828999, 33.741375;117.828191, 33.745564;117.818362, 33.739095;117.798571, 33.737174;117.784483, 33.72818;117.774583, 33.727953;117.757619, 33.716734;117.749857, 33.716053;117.749796, 33.722638;117.738896, 33.72745;117.73837, 33.737965;117.730099, 33.740812;117.726313, 33.745796;117.729181, 33.751716;117.738757, 33.752084;117.740904, 33.756369;117.737711, 33.758049;117.747678, 33.76621;117.742938, 33.780313;117.749531, 33.794486;117.7536, 33.796015;117.752228, 33.800336;117.756174, 33.801695;117.756805, 33.819278;117.750445, 33.831673;117.754658, 33.832603;117.753983, 33.839208;117.760314, 33.846156;117.756688, 33.851308;117.759562, 33.855308;117.756966, 33.862332;117.761418, 33.866375;117.76135, 33.874221;117.765967, 33.881076;117.763945, 33.889978;117.75819, 33.894208;117.739511, 33.898678;117.728442, 33.893603;117.727454, 33.88674;117.717537, 33.885861;117.70498, 33.896697;117.701335, 33.918222;117.698044, 33.918646;117.6954, 33.928503;117.688304, 33.933077;117.6787, 33.933618;117.675201, 33.938607;117.6801, 33.952172;117.668622, 33.96222;117.669222, 33.969912;117.664087, 33.973484;117.668904, 33.983916;117.677636, 33.991922;117.676868, 34.000759;117.649629, 34.014609;117.64789, 34.020799;117.632555, 34.02339;117.628014, 34.038018;117.612602, 34.038002;117.612404, 34.031649;117.622546, 34.024203;117.617616, 34.016614;117.618734, 34.005967;117.59435, 34.00167;117.593239, 33.99114;117.581865, 33.985352;117.570112, 33.983513;117.569878, 34.001425;117.562137, 34.001828;117.561522, 34.009042;117.548035, 34.01312;117.549049, 34.049037;117.517548, 34.066645;117.513303, 34.066646;117.504452, 34.053142;117.486026, 34.052821;117.477041, 34.04527;117.464338, 34.042113;117.4608, 34.039838;117.460679, 34.032344;117.455058, 34.031985;117.452207, 34.034822;117.44102, 34.031712;117.440742, 34.02836;117.4213, 34.026877;117.404417, 34.035011;117.405222, 34.051183;117.399566, 34.05845;117.39473, 34.061783;117.374033, 34.065217;117.374939, 34.06946;117.382597, 34.070049;117.382778, 34.08055;117.371966, 34.083237;117.370125, 34.088912;117.363433, 34.089849;117.362454, 34.09628;117.325229, 34.088964;117.32494, 34.083444;117.320665, 34.081836;117.320385, 34.070545;117.31037, 34.068196;117.295402, 34.07408;117.293975, 34.080102;117.285665, 34.081933;117.277259, 34.081877;117.268931, 34.075928;117.241415, 34.073529;117.238239, 34.070069;117.231554, 34.070586;117.218334, 34.080552;117.21396, 34.079956;117.212606, 34.074543;117.197832, 34.074611;117.196705, 34.071974;117.195792, 34.074612;117.184502, 34.076135;117.184666, 34.081382;117.17541, 34.085601;117.173458, 34.082626;117.154272, 34.083867;117.165019, 34.104815;117.156119, 34.106922;117.154549, 34.103501;117.124376, 34.109594;117.128618, 34.116295;117.14132, 34.116076;117.13686, 34.130919;117.108861, 34.135904;117.103147, 34.142954;117.105616, 34.150148;117.081133, 34.147423;117.074622, 34.149446;117.070771, 34.157503;117.061062, 34.159963;117.053342, 34.156866;117.048488, 34.166121;117.031001, 34.173623;117.033809, 34.189298;117.044575, 34.197559;117.044357, 34.206416;117.053469, 34.20895;117.051084, 34.21814;117.057682, 34.227091;117.052741, 34.228687;117.048078, 34.236192;117.05486, 34.242;117.055671, 34.248728;117.047214, 34.25405;117.035265, 34.246688;117.025712, 34.248694;117.025133, 34.265332;117.008323, 34.262102;117.004471, 34.272678;116.989476, 34.277014;116.986484, 34.286726;116.97975, 34.290538;116.982982, 34.29754;116.978402, 34.306302;116.984217, 34.310631;116.983491, 34.323041;116.975794, 34.326263;116.989781, 34.3504;116.989964, 34.361122;116.967626, 34.373113;116.977587, 34.397188;116.962365, 34.398358;116.929311, 34.410753;116.926885, 34.407743;116.915609, 34.40862;116.912883, 34.415038;116.909187, 34.415682;116.906521, 34.409462;116.901226, 34.413275;116.894315, 34.411896;116.886903, 34.41707;116.88084, 34.412454;116.87745, 34.399933;116.874835, 34.403956;116.866348, 34.399782;116.863859, 34.406444;116.860493, 34.400435;116.849942, 34.401904;116.841071, 34.391407;116.828475, 34.408231;116.799886, 34.425529;116.796065, 34.433393;116.78915, 34.436278;116.789422, 34.444653;116.784532, 34.455149;116.764857, 34.470002;116.752732, 34.474086;116.751198, 34.471216;116.743422, 34.470894;116.722846, 34.477123;116.669622, 34.480336;116.65085, 34.487424;116.640947, 34.487172;116.632992, 34.491801;116.625661, 34.492539;116.61716, 34.488634;116.612645, 34.493111;116.600052, 34.49031;116.604111, 34.491937;116.601911, 34.494977;116.593432, 34.494412;116.584228, 34.488123;116.575571, 34.49567;116.576255, 34.502047;116.580983, 34.503811;116.590041, 34.500203;116.600803, 34.500559;116.606042, 34.509602;116.605366, 34.518084;116.594772, 34.516386;116.583183, 34.530549;116.566044, 34.537741;116.558149, 34.549887;116.54779, 34.5484;116.545884, 34.550482;116.538116, 34.546328;116.525727, 34.548897;116.53109, 34.558577;116.522571, 34.56252;116.515686, 34.55995;116.513635, 34.570029;116.503079, 34.5715;116.498347, 34.575688;116.500676, 34.580463;116.495541, 34.585346;116.498556, 34.589466;116.505609, 34.590257;116.505588, 34.595286;116.492264, 34.595474;116.48885, 34.597918;116.486772, 34.615717;116.469202, 34.616458;116.470942, 34.621075;116.465183, 34.62253;116.461567, 34.627852;116.449579, 34.627954;116.439608, 34.634626;116.443345, 34.646243;116.43659, 34.656226;116.424694, 34.656655;116.415663, 34.649559;116.403991, 34.65392;116.406761, 34.646849;116.397052, 34.647459;116.397519, 34.637327;116.380571, 34.643138;116.372447, 34.657385;116.386704, 34.667236;116.386788, 34.681023;116.382181, 34.686741;116.393111, 34.695515;116.392011, 34.701145;116.400417, 34.707833;116.391242, 34.712011;116.386746, 34.722831;116.375117, 34.71988;116.36844, 34.724029;116.370207, 34.730219;116.375531, 34.731088;116.368152, 34.743866;116.368511, 34.751096;116.371434, 34.755118;116.409428, 34.757337;116.403583, 34.76493;116.406196, 34.769433;116.402973, 34.769689;116.410296, 34.77289;116.407114, 34.815164;116.418634, 34.822766;116.41309, 34.83491;116.419829, 34.852367;116.417145, 34.858251;116.422022, 34.870627;116.450684, 34.897839;116.461835, 34.901607;116.463651, 34.905382;116.483779, 34.902596;116.508995, 34.907208;116.512389, 34.911907;116.53, 34.912683;116.530542, 34.910671;116.54702, 34.912961;116.554752, 34.917095;116.569764, 34.915719;116.585317, 34.919921;116.585937, 34.922414;116.588235, 34.920746;116.612099, 34.926258;116.616444, 34.930022;116.620499, 34.928405;116.6271, 34.937941;116.625754, 34.941399;116.633706, 34.945401;116.643391, 34.943718;116.648922, 34.937486;116.666556, 34.934417;116.667103, 34.939615;116.683513, 34.939037;116.686772, 34.9443;116.696964, 34.939989;116.698118, 34.936049;116.711494, 34.941896;116.726353, 34.932172;116.742047, 34.930529;116.760167, 34.924405;116.758382, 34.914214;116.763409, 34.913208;116.775335, 34.921098;116.787668, 34.923197;116.792881, 34.944317;116.803701, 34.942406;116.803083, 34.951337;116.789498, 34.954301;116.783356, 34.97238;116.785668, 34.975542;116.798126, 34.972347;116.804674, 34.964693;116.85497, 34.948159;116.933367, 34.906343;116.969642, 34.882509;116.971519, 34.844084;116.991046, 34.803866;117.015533, 34.776666;117.023997, 34.774669;117.044073, 34.782137;117.049247, 34.780694;117.052942, 34.777663;117.058715, 34.756908;117.057873, 34.746406;117.071824, 34.736766;117.091731, 34.746066;117.095282, 34.745144;117.08948, 34.727849;117.10091, 34.713795;117.110759, 34.714662;117.119889, 34.679609;117.127832, 34.678633;117.130645, 34.674841;117.145838, 34.605063;117.165986, 34.566528;117.165156, 34.554072;117.161686, 34.549873;117.173657, 34.511346;117.181533, 34.512267;117.185765, 34.494511;117.192384, 34.489225;117.19696, 34.490459;117.202178, 34.480047;117.206096, 34.481863;117.212177, 34.477566;117.220337, 34.484805;117.226342, 34.481431;117.226492, 34.477607;117.219879, 34.475851;117.22292, 34.470469;117.231571, 34.477528;117.235641, 34.475639;117.237378, 34.469705;117.233228, 34.459886;117.244298, 34.459986;117.246979, 34.450227;117.262688, 34.458199;117.26624, 34.463244;117.264732, 34.474461;117.272579, 34.482468;117.26686, 34.503261;117.281585, 34.509128;117.278344, 34.522804;117.282222, 34.526493;117.279051, 34.528441;117.279456, 34.533416;117.275501, 34.533711;117.276279, 34.538776;117.283676, 34.537352;117.303505, 34.542714;117.310023, 34.553909;117.30249, 34.555861;117.302259, 34.560922;117.30872, 34.565987;117.318327, 34.558818;117.322938, 34.566294;117.331091, 34.568236;117.337376, 34.566088;117.337116, 34.573563;117.325398, 34.572;117.325236, 34.577915;117.342659, 34.580171;117.364188, 34.596575;117.41064, 34.574226;117.415501, 34.546838;117.433025, 34.545372;117.433278, 34.522684;117.448487, 34.533317;117.452497, 34.523274;117.448128, 34.521241;117.449727, 34.515946;117.456774, 34.518487;117.455778, 34.513823;117.46316, 34.514708;117.471134, 34.491101;117.475181, 34.494947;117.478525, 34.491739;117.482317, 34.493223;117.492946, 34.489454;117.494463, 34.475875;117.501344, 34.474628;117.503165, 34.477205;117.50483, 34.474389;117.509082, 34.480118;117.519514, 34.479707;117.545487, 34.472894;117.551814, 34.480413;117.557539, 34.481823;117.577298, 34.468621;117.596344, 34.46736;117.59553, 34.47073;117.609682, 34.482307;117.620512, 34.498802;117.631109, 34.495071;117.639973, 34.496198;117.64648, 34.504766;117.652974, 34.501953;117.66696, 34.508414;117.672698, 34.517471;117.680726, 34.522222;117.687844, 34.534877;117.688773, 34.555003;117.731158, 34.548223;117.792616, 34.527627;117.804385, 34.528214;117.800669, 34.554193;117.805243, 34.560468;117.801471, 34.566841;117.798425, 34.59171;117.806037, 34.630531;117.8009, 34.634614;117.800504, 34.659465;117.813396, 34.653934;117.811611, 34.648049;117.820399, 34.650959;117.824371, 34.657154;117.829187, 34.656215;117.833372, 34.662502;117.842569, 34.654868;117.853462, 34.660548;117.857484, 34.652821;117.860903, 34.652795;117.861645, 34.655856;117.869343, 34.653293;117.873731, 34.657374;117.883073, 34.658088;117.896295, 34.649534;117.910209, 34.650528;117.916569, 34.677251;117.930289, 34.672341;117.930677, 34.665509;117.93774, 34.662912;117.955062, 34.682167;117.967732, 34.686154;117.981372, 34.677501;117.996424, 34.680245;117.997337, 34.66778;118.010985, 34.662033;118.013451, 34.65604;118.021621, 34.653706;118.027392, 34.666395;118.054338, 34.65907;118.084052, 34.666431;118.084607, 34.658481;118.088244, 34.661342;118.091332, 34.658039;118.104422, 34.662438;118.107612, 34.651279;118.102031, 34.64147;118.106487, 34.634205;118.120219, 34.626216;118.121215, 34.620643;118.109748, 34.601331;118.092212, 34.589213;118.084384, 34.576059;118.118941, 34.567343;118.124832, 34.562076;118.143112, 34.566125;118.14857, 34.558275;118.162798, 34.550644;118.166202, 34.558913;118.19544, 34.549992;118.191447, 34.545104;118.179875, 34.546095;118.177871, 34.533748;118.173242, 34.53247;118.172155, 34.528303;118.175629, 34.527653;118.17868, 34.520846;118.170297, 34.507193;118.165122, 34.510107;118.156267, 34.50442;118.145605, 34.507427;118.134885, 34.491098;118.147441, 34.486314;118.146954, 34.481352;118.154174, 34.480457;118.154279, 34.476673;118.171735, 34.469657;118.171756, 34.466996;118.183945, 34.461383;118.189274, 34.455444;118.189251, 34.438579;118.185075, 34.425718;118.179167, 34.420319;118.183046, 34.40794;118.177806, 34.388439;118.185746, 34.386857;118.191571, 34.393677;118.194933, 34.386964;118.208454, 34.387366;118.209082, 34.384092;118.214479, 34.383153;118.223131, 34.385054;118.227006, 34.412034;118.239004, 34.406068;118.256915, 34.412422;118.280251, 34.410162;118.284025, 34.416585;118.294724, 34.418128;118.295302, 34.427295;118.299588, 34.432815;118.314634, 34.42982;118.325713, 34.434772;118.327665, 34.428157;118.359075, 34.429319;118.359313, 34.421196;118.364254, 34.422926;118.384649, 34.419169;118.388924, 34.430411;118.414103, 34.437331;118.419856, 34.447059;118.415911, 34.455608;118.421402, 34.465164;118.421229, 34.476937;118.438376, 34.503503;118.438869, 34.509834;118.443624, 34.511339;118.445459, 34.524782;118.442937, 34.54172;118.4396, 34.54305;118.43762, 34.565126;118.431082, 34.571059;118.433125, 34.597125;118.42984, 34.615897;118.435484, 34.618002;118.443821, 34.633937;118.458201, 34.624335;118.466306, 34.626183;118.470581, 34.631872;118.483878, 34.627433;118.482928, 34.643352;118.478641, 34.650252;118.47284, 34.647796;118.467606, 34.663008;118.471084, 34.675468;118.481374, 34.681644;118.495009, 34.669331;118.50349, 34.669212;118.514474, 34.688628;118.515243, 34.695839;118.538152, 34.692833;118.540142, 34.700621;118.531549, 34.706584;118.537621, 34.718665;118.543338, 34.721941;118.55257, 34.722091;118.56233, 34.719077;118.564346, 34.713744;118.583461, 34.722588;118.594162, 34.719131;118.603323, 34.721031;118.601118, 34.724769;118.604053, 34.724365;118.611496, 34.719285;118.61075, 34.69403;118.62464, 34.697203;118.641214, 34.689169;118.647391, 34.698889;118.654434, 34.702976;118.677752, 34.705773;118.677544, 34.70309;118.684199, 34.701451;118.682946, 34.694553;118.688054, 34.685707;118.698321, 34.689633;118.708788, 34.688935;118.716659, 34.698143;118.737796, 34.700069;118.76939, 34.710827;118.769655, 34.717458;118.777153, 34.720509;118.777591, 34.725758;118.782724, 34.72634;118.785118, 34.730699;118.781858, 34.731096;118.780477, 34.739188;118.767805, 34.752602;118.761399, 34.744076;118.744424, 34.739865;118.737069, 34.746646;118.736032, 34.754723;118.725352, 34.751843;118.716663, 34.756353;118.721893, 34.758678;118.720862, 34.767914;118.725591, 34.772675;118.738006, 34.775211;118.745609, 34.771253;118.74826, 34.786731;118.741405, 34.787354;118.735005, 34.793548;118.736912, 34.79653;118.746676, 34.79837;118.772048, 34.796297;118.780819, 34.803413;118.783754, 34.82554;118.792495, 34.836127;118.787602, 34.839879;118.770216, 34.837214;118.777408, 34.845347;118.775995, 34.848708;118.768073, 34.847573;118.771881, 34.856128;118.779185, 34.85294;118.786325, 34.854184;118.792523, 34.85004;118.793077, 34.854819;118.788963, 34.856996;118.791297, 34.862921;118.800252, 34.849791;118.81116, 34.851259;118.813639, 34.860611;118.807178, 34.861521;118.807247, 34.86534;118.814208, 34.876652;118.805755, 34.880499;118.812654, 34.890843;118.823241, 34.89496;118.823494, 34.899805;118.820757, 34.900163;118.831632, 34.916695;118.854263, 34.935339;118.859622, 34.935657;118.857014, 34.931611;118.86892, 34.93274;118.865423, 34.944254;118.87118, 34.959084;118.865144, 34.962293;118.866148, 34.968125;118.862267, 34.97179;118.868134, 34.981399;118.865639, 34.984656;118.869042, 34.985338;118.870172, 34.993162;118.875863, 34.997355;118.875354, 35.009533;118.86715, 35.02907;118.874298, 35.039586;118.877149, 35.037538;118.886136, 35.040331;118.889818, 35.038606;118.911865, 35.050446;118.920885, 35.049195;118.917197, 35.056026;118.925006, 35.054427;118.932354, 35.058048;118.943804, 35.049952;118.952887, 35.052736;118.962831, 35.049063;118.970597, 35.054223;118.97923, 35.052524;118.994175, 35.057112;118.995804, 35.051354;119.003976, 35.053684;119.006866, 35.058431;119.015636, 35.058908;119.016254, 35.061736;119.025704, 35.059235;119.037214, 35.061815;119.050892, 35.054832;119.058615, 35.058586;119.075526, 35.056733;119.076723, 35.061908;119.082686, 35.064761;119.084475, 35.061415;119.099285, 35.063776;119.10695, 35.061297;119.106559, 35.058372;119.114415, 35.058057;119.1142, 35.053003;119.133021, 35.061127;119.126816, 35.077217;119.136747, 35.08281;119.132182, 35.088118;119.141899, 35.088991;119.143836, 35.096035;119.138685, 35.102346;119.148059, 35.106496;119.169659, 35.106795;119.175354, 35.113727;119.189717, 35.113304;119.192491, 35.116508;119.201571, 35.117823;119.214953, 35.116211;119.21647, 35.113283;119.233056, 35.113798;119.232364, 35.120344;119.241789, 35.123586;119.249679, 35.132838;119.272666, 35.123422;119.294336, 35.120073;119.305666, 35.103103;119.308881, 35.08586;119.359888, 35.037624;119.352806, 35.029374;119.348416, 34.907882;119.37289, 34.876762;119.44907, 34.84904;119.502807, 34.81978;119.582486, 34.790214;119.59381, 34.776863;119.607666, 34.740809;119.617958, 34.67011;119.62904, 34.648159;119.735663, 34.594092;119.804728, 34.568171;119.850656, 34.557628;119.906808, 34.550223;119.948418, 34.53831;119.993392, 34.519642;120.015346, 34.50439;120.102048, 34.485748;120.333124, 34.384579;120.357129, 34.366741;120.364688, 34.356466;120.369439, 34.335672;120.389057, 34.16628;120.444576, 34.114516;120.47023, 34.079573;120.485178, 34.052551;120.49812, 34.004722;120.510311, 33.918769;120.533355, 33.879866;120.582758, 33.828457;120.632484, 33.767469;120.715971, 33.613087;120.735756, 33.559265;120.760244, 33.472973;120.763324, 33.3397;120.767695, 33.335866;120.842033, 33.327255;120.855518, 33.319039;120.858713, 33.195331;120.949669, 33.091539;120.96193, 33.069778;120.982986, 32.999622;120.995905, 32.927098;121.008885, 32.666793;121.012977, 32.657693;121.104087, 32.590169;121.192596, 32.547586;121.260873, 32.543558;121.35928, 32.547977;121.43913, 32.549366;121.445365, 32.546963;121.453296, 32.536934;121.464235, 32.465288;121.47736, 32.423964;121.491796, 32.281294;121.504275, 32.197358;121.510586, 32.176313;121.513289, 32.170259;121.52296, 32.165153;121.570552, 32.158408';
    map.clearOverlays();        //清除地图覆盖物
    var count = rs.boundaries.length; //行政区域的点有多少个
    // var pointArray = [];
    for (var i = 0; i < count; i++) {
        blist.push({ points: rs.boundaries[i], name: "" });//江苏省
        // var ply = new BMap.Polygon(rs.boundaries[i], {strokeWeight: 2, strokeColor: "#061537",fillOpacity:0,enableClicking:false}); //建立多边形覆盖物
        // map.addOverlay(ply);  //添加覆盖物
        // pointArray = pointArray.concat(ply.getPath());
    }
}

/**
 * 遮蔽层
 * @param map
 */
function drawBoundary(map) {
    //包含所有区域的点数组
    var pointArray = [];

    /*画遮蔽层的相关方法
    *思路: 首先在中国地图最外画一圈,圈住理论上所有的中国领土,然后再将每个闭合区域合并进来,并全部连到西北角。
    *      这样就做出了一个经过多次西北角的闭合多边形*/
    //定义中国东南西北端点,作为第一层
    var pNW = { lat: 59.0, lng: 73.0 };
    var pNE = { lat: 59.0, lng: 136.0 };
    var pSE = { lat: 3.0, lng: 136.0 };
    var pSW = { lat: 3.0, lng: 73.0 };
    //向数组中添加一次闭合多边形,并将西北角再加一次作为之后画闭合区域的起点
    var pArray = [];
    pArray.push(pNW);
    pArray.push(pSW);
    pArray.push(pSE);
    pArray.push(pNE);
    pArray.push(pNW);//起点
    //循环添加各闭合区域
    for (var i = 0; i < blist.length; i++) {
        //添加显示用标签层
        var label = new BMap.Label(blist[i].name, { offset: new BMap.Size(20, -10) });
        label.hide();
        map.addOverlay(label);

        //添加多边形层并显示
        var ply = new BMap.Polygon(blist[i].points, { strokeWeight: 5, strokeColor: "#20D9FB", fillOpacity: 0.1,
            fillColor: "#061537" ,enableClicking:false}); //建立多边形覆盖物
        ply.name = blist[i].name;
        ply.label = label;
        map.addOverlay(ply);

        //添加名称标签层
        var centerlabel = new BMap.Label(blist[i].name, { offset: new BMap.Size(0, 0) });
        centerlabel.setPosition(ply.getBounds().getCenter());
        map.addOverlay(centerlabel);

        //将点增加到视野范围内
        var path = ply.getPath();
        pointArray = pointArray.concat(path);
        //将闭合区域加到遮蔽层上,每次添加完后要再加一次西北角作为下次添加的起点和最后一次的终点
        pArray = pArray.concat(path);
        pArray.push(pArray[0]);
    }

    //限定显示区域,需要引用api库
    // var boundply = new BMap.Polygon(pointArray);
    // BMapLib.AreaRestriction.setBounds(map, boundply.getBounds());
    // map.setViewport(pointArray);    //调整视野

    //添加遮蔽层
    var plyall = new BMap.Polygon(pArray, { strokeOpacity: 0, strokeColor: "#FFFFFF", strokeWeight: 0.0000001,
        fillColor: "#061537", fillOpacity: 1,enableClicking:false}); //建立多边形覆盖物
    map.addOverlay(plyall);
}
</script>

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

z563394688

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值