D3js-绘制地图时出现过小, 设置scale还是无效 的解

页面导航:首页 > 网络编程 > JavaScript > D3js-绘制地图时出现过小, 设置scale还是无效 的解

D3js-绘制地图时出现过小, 设置scale还是无效 的解

来源: 作者: 时间:2016-02-02 09:58 【

使用d3绘制某个地市的地图时,把scale成很大可是还是无法达到想要的效果。 ------------------------------------------------------------- 获得地图的中心 获得center function getCe

使用d3绘制某个地市的地图时,把scale成很大可是还是无法达到想要的效果。

 

//-------------------------------------------------------------
    	//获得地图的中心 获得center
    		function getCenters(features){
					var longitudeMin = 100000;//最小经度值
					var latitudeMin = 100000;//最小纬度值
					var longitudeMax = 0;//最大经度值
					var latitudeMax = 0;//最大纬度值
					features.forEach(function(e){  
					    var a = d3.geo.bounds(e);//[为某个对象计算经纬度  d3.geo.bounds - compute the latitude-longitude bounding box for a given feature]
					    if(a[0][0] < longitudeMin) {
					    	longitudeMin = a[0][0];
					    }
					    if(a[0][1] < latitudeMin) {
					    	latitudeMin = a[0][1];
					    }
					    if(a[1][0] > longitudeMax) {
					    	longitudeMax = a[1][0];
					    }
					    if(a[1][1] > latitudeMax) {
					    	latitudeMax = a[1][1];
					    }
					});
				
					var a = (longitudeMax + longitudeMin)/2;
					var b = (latitudeMax + latitudeMin)/2;
				
					return [a, b];
				}
    		
    		//设置地图的大小 获得 scale
    		function getZoomScale(features, width, height){
						var longitudeMin = 100000;//最小经度值
						var latitudeMin = 100000;//最小纬度值
						var longitudeMax = 0;//最大经度值
						var latitudeMax = 0;//最大纬度值
						features.forEach(function(e){  
						    var a = d3.geo.bounds(e);//[为某个对象计算经纬度  d3.geo.bounds - compute the latitude-longitude bounding box for a given feature]
						    if(a[0][0] < longitudeMin) {
						    	longitudeMin = a[0][0];
						    }
						    if(a[0][1] < latitudeMin) {
						    	latitudeMin = a[0][1];
						    }
						    if(a[1][0] > longitudeMax) {
						    	longitudeMax = a[1][0];
						    }
						    if(a[1][1] > latitudeMax) {
						    	latitudeMax = a[1][1];
						    }
						});
					
						var a = longitudeMax-longitudeMin;
						var b = latitudeMax-latitudeMin;
						/*if(a > b) {  //
							return width/a;
						} else {
							return height/b;
						}*/
					
						return Math.min(width/a, height/b);
					}
					    	


实例运用:

 

 

<%@ page language=java import=java.util.* pageEncoding=UTF-8%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+://+request.getServerName()+:+request.getServerPort()+path+/;
%>


> <script type=text/javascript src=js/d3/d3.js></script><script type=text/javascript src=js/d3/d3.min.js></script><script type=text/javascript> var width = 1000; var height = 1000; var svg =d3.select(body).append(svg) .attr(width,width) .attr(height,height); //------------------------------------------------------------- //获得地图的中心 function getCenters(features){ var longitudeMin = 100000; var latitudeMin = 100000; var longitudeMax = 0; var latitudeMax = 0; features.forEach(function(e){ var a = d3.geo.bounds(e); if(a[0][0] < longitudeMin) { longitudeMin = a[0][0]; } if(a[0][1] < latitudeMin) { latitudeMin = a[0][1]; } if(a[1][0] > longitudeMax) { longitudeMax = a[1][0]; } if(a[1][1] > latitudeMax) { latitudeMax = a[1][1]; } }); var a = (longitudeMax + longitudeMin)/2; var b = (latitudeMax + latitudeMin)/2; return [a, b]; } //设置地图的大小 function getZoomScale(features, width, height){ var longitudeMin = 100000; var latitudeMin = 100000; var longitudeMax = 0; var latitudeMax = 0; features.forEach(function(e){ var a = d3.geo.bounds(e); if(a[0][0] < longitudeMin) { longitudeMin = a[0][0]; } if(a[0][1] < latitudeMin) { latitudeMin = a[0][1]; } if(a[1][0] > longitudeMax) { longitudeMax = a[1][0]; } if(a[1][1] > latitudeMax) { latitudeMax = a[1][1]; } }); var a = longitudeMax-longitudeMin; var b = latitudeMax-latitudeMin; return Math.min(width/a, height/b); } //读取json文件 d3.json(data/jian.json,function(error,data) { if(error) console.log(data); var centers = getCenters(data.features); var zoomScale = getZoomScale(data.features, width, height); //alert(center:+centers+,zoomscale:+zoomScale); //orthographic 正射 //先定义一个投影 var projection = d3.geo.mercator() .center( centers// //[107,30] ) .translate([width/4,height/5]) .scale(//50*15 zoomScale*18 ); //通过投影函数生成地理路径生成器 var path = d3.geo.path() .projection(projection); //缩放 function zoomed () { d3.select(this).attr(transform,//translate(110,40)scale(+d3.event.scale+) translate(+d3.event.translate+)scale(+d3.event.scale+) ); } var zoom = d3.behavior.zoom() .scaleExtent([1,20]) .on(zoom,zoomed); var drag = d3.behavior.drag() .origin(function(d){return d;}) .on(drag,draged); var jian = svg.append(g) .attr(function(d) { d.dx=110; d.dy=40; }) .call(zoom) //.call(drag) ; //实现可拖拽 function draged(d) { d.dx+=d3.event.dx; d.dy+=d3.event.dy; d3.select(this) .attr(transform,translate(+d.dx+,+d.dy+)); } var color = d3.scale.category20c(); //tooltip-div 提示框 var tooltip =d3.select(body).append(div) .attr(class,tooltip) .attr(opacity,0.0) //.attr(position,absolute) ; var city = jian.selectAll(path) .data(data.features) //数据 .enter() .append(path) .attr(fill,function(d,i) { return color(i); }) /* .each(function(d,i) { d3.select(this) .append(text) .text(function(d,i) { return d.properties.name; }); } ) */ .attr(d,path) /* .append(title) .text(function(d,i) { return d.properties.name; }) */ .on(mouseover,function(d,i) { d3.select(this).attr(fill,#ccc); /* if(d.properties.name==泰和县) { d3.select(this) .append(circle) .attr(r,5); } */ tooltip.(d.properties.name) .style(left,(d3.event.pageX)+px) .style(top,(d3.event.pageY+20)+px) .style(opacity,1.0) ; }) .on(mouut,function(d,i) { d3.select(this).attr(fill,color(i)); tooltip.style(opacity,0.0); }) //--------------- /* .selectAll(text) .data(data.features) .enter() .append(text) .text(function(d) { return d.properties.name; }) .attr(transform,function(d) { //alert(d.geometry.coordinates[0][0][0][0]); //alert(d.geometry.coordinates[0][0][0]); var coor=projection(d.geometry.coordinates[0][0][0]); //alert(); return translate(+coor+); // y=y+20; //return translate(+x+,+y+); }) //.attr(text-anchor,middle) .style(font-size,16) .style(fill,#ccc) .attr(opacity,1.0) */ //-------------------------------- ; var x=0; var y=0; var count=0; //var coor; var xArray=[]; var yArray=[]; jian.selectAll(text) .data(data.features) .enter() .append(text) .text(function(d,i) { //x=d3.mean(d.geometry.coordinates[0][0][0][0]); //alert(x); return d.properties.name; }) /* .attr(x,function(d,i) { return d.geometry.coordinates[0][0]; }) .attr(y,function(d,i) { return d3.mean(d.geometry.coordinates[0][0]); }) */ .attr(transform,function(d,i) { /* xArray[i]=d.geometry.coordinates[0][0][0][0]; yArray[i]=d.geometry.coordinates[0][0][0][1]; alert(xArray); return translate(+d3.mean(xArray)+,+(d3.mean(yArray))+); */ var coor=projection(d.geometry.coordinates[0][0][0]); if( d.properties.name ==遂川县) return translate(+coor[0]+,+(coor[1]-40)+); if( d.properties.name ==吉州区) return translate(+(coor[0]-40)+,+(coor[1]+20)+); return translate(+(coor[0]-10)+,+(coor[1]+40)+); }) //.attr(text-anchor,middle) .style(font-size,16) .style(fill,black) ; }); </script>
效果图:\

 

 

jian.json文件内容:(编码为 UTF-8)

{type: FeatureCollection, features: [
{type:Feature,properties:
{name:安福县,id:360829},geometry:
{type:MultiPolygon,coordinates:
[[[[114.531881132813,27.5683815742188],[114.608267851563,27.5547682929688],[114.629332304688,27.5294118476563],[114.677198515625,27.5967897773438],[114.71834109375,27.6009841132813],[114.737345,27.593843],[114.743013945313,27.5484841132813],[114.722896757813,27.5142653632813],[114.731793242188,27.4882888007813],[114.744781523438,27.4778884101563],[114.778956328125,27.4311061835938],[114.783590117188,27.3938430000001],[114.781724882813,27.378843],[114.784210234375,27.3588430000001],[114.781724882813,27.338843],[114.783248320313,27.3265773750001],[114.744327421875,27.2954103828125],[114.731617460938,27.2652516914063],[114.670054960938,27.2160182929688],[114.616265898438,27.2227077460938],[114.628785429688,27.1220827460938],[114.5922278125,27.1080324531251],[114.572144804688,27.1198390937501],[114.554874296875,27.098266828125],[114.502896757813,27.0782888007813],[114.447345,27.073843],[114.418248320313,27.0787868476562],[114.38298953125,27.12948753125],[114.343143339844,27.1602419257812],[114.322345,27.211059796875],[114.301954375,27.2080471015625],[114.282110625,27.2200173164063],[114.267240019531,27.2007521796876],[114.202120390625,27.2197389960938],[114.18298953125,27.20819846875],[114.144842558594,27.1925881171876],[114.127345,27.223843],[114.131790800781,27.2293971992188],[114.153619414063,27.2468752265625],[114.132869902344,27.3195314765626],[114.11373171875,27.3171486640626],[114.092899199219,27.3293971992188],[114.071790800781,27.3382888007813],[114.062899199219,27.3593971992188],[114.051790800781,27.3682888007813],[114.042899199219,27.3793971992188],[114.017415800781,27.3901345039063],[114.027345,27.4338430000001],[114.166610136719,27.4396584296876],[114.192535429688,27.4886525703125],[114.202154570313,27.5190334296875],[114.212535429688,27.5286525703125],[114.222154570313,27.5490334296875],[114.267345,27.573843],[114.294700957031,27.5853322578125],[114.321429472656,27.5679274726563],[114.343260527344,27.5597585273437],[114.362691679688,27.54710471875],[114.371673613281,27.5601149726563],[114.402183867188,27.5532741523438],[114.442066679688,27.5700270820313],[114.461138945313,27.5657497382812],[114.49326296875,27.5879274726563],[114.509439726563,27.61136253125],[114.527345,27.603843],[114.531881132813,27.5683815742188]]]]}},{type:Feature,properties:{name:吉安县,id:360821},geometry:{type:MultiPolygon,coordinates:[[[[114.797345,27.6238430000001],[114.797345,27.613843],[114.807345,27.613843],[114.81326296875,27.6097585273438],[114.8241028125,27.5940529609376],[114.852388945313,27.5877126289063],[114.877345,27.593843],[114.883985625,27.580483625],[114.887345,27.5438430000001],[114.87166140625,27.5393581367188],[114.872965117188,27.528843],[114.871099882813,27.5138430000001],[114.873590117188,27.493843],[114.869298125,27.459341046875],[114.919547148438,27.4381667304688],[114.937994414063,27.3569606757813],[114.914659453125,27.3172658515625],[114.97025515625,27.3241799140626],[114.951666289063,27.3092971015626],[114.952965117188,27.298843],[114.950636015625,27.2801052070313],[114.967345,27.253843],[114.931793242188,27.2293971992188],[114.91732546875,27.2113283515626],[114.892345,27.2082204414063],[114.882345,27.2094655585938],[114.867345,27.2076003242188],[114.85189578125,27.2095217109375],[114.792896757813,27.1622731757813],[114.804791289063,27.1301955390625],[114.8341028125,27.080337140625],[114.812896757813,27.0442653632813],[114.850006132813,27.0365895820312],[114.885318632813,27.0573464179688],[114.953839140625,27.0658693671875],[114.950689726563,27.0405226875],[114.987345,27.063843],[115.005030546875,27.0409279609375],[115.051129179688,27.0220607734375],[115.054381132813,27.0000637031251],[115.027345,26.963843],[115.011793242188,26.9593971992188],[114.992896757813,26.9482888007813],[114.931656523438,26.9393776679688],[114.932965117188,26.928843],[114.93150515625,26.9170827460938],[114.907345,26.9200856757813],[114.892345,26.9182204414063],[114.881983671875,26.9195095039063],[114.86021609375,26.9067116523438],[114.864039335938,26.93745628125],[114.84845828125,26.9639577460938],[114.790738554688,26.9567775703126],[114.792965117188,26.9388430000001],[114.79150515625,26.9270827460938],[114.767345,26.9300856757813],[114.71802859375,26.9239528632813],[114.682896757813,26.8982888007813],[114.651793242188,26.8893971992188],[114.614405546875,26.823266828125],[114.505050078125,26.8544924140625],[114.477345,26.843843],[114.44170046875,26.85819846875],[114.419266386719,26.913012921875],[114.423822050781,26.943843],[114.421522246094,26.9594142890626],[114.44298953125,26.96819846875],[114.473902617188,27.0082521796876],[114.45170046875,27.03819846875],[114.447345,27.073843],[114.502896757813,27.0782888007813],[114.554874296875,27.098266828125],[114.572144804688,27.1198390937501],[114.5922278125,27.1080324531251],[114.628785429688,27.1220827460938],[114.616265898438,27.2227077460938],[114.670054960938,27.2160182929688],[114.731617460938,27.2652516914063],[114.744327421875,27.2954103828125],[114.783248320313,27.3265773750001],[114.781724882813,27.338843],[114.784210234375,27.3588430000001],[114.781724882813,27.378843],[114.783590117188,27.3938430000001],[114.778956328125,27.4311061835938],[114.744781523438,27.4778884101563],[114.731793242188,27.4882888007813],[114.722896757813,27.5142653632813],[114.743013945313,27.5484841132813],[114.737345,27.593843],[114.74638796875,27.6069387031251],[114.7821496875,27.6302272773438],[114.797345,27.6238430000001]]]]}},
{type:Feature,properties:{name:吉水县,id:360822},geometry:{type:MultiPolygon,coordinates:[[[[115.0236340625,27.4851296210938],[115.051954375,27.4680471015625],[115.080806914063,27.4723097968751],[115.098424101563,27.44948753125],[115.143150664063,27.4983791328125],[115.138746367188,27.52819846875],[115.16298953125,27.51948753125],[115.196143828125,27.4994875312501],[115.22298953125,27.50819846875],[115.243922148438,27.5208254218751],[115.262345,27.5181032539063],[115.272935820313,27.5196706367188],[115.28670046875,27.4702468085938],[115.31298953125,27.4594875312501],[115.347345,27.413843],[115.332896757813,27.3882888007813],[115.276339140625,27.3721193671875],[115.282965117188,27.3188430000001],[115.281666289063,27.3083888984375],[115.298453398438,27.2949489570313],[115.319947539063,27.2197682929688],[115.342159453125,27.2019802070313],[115.354019804688,27.1605007148438],[115.372345,27.1582204414062],[115.401890898438,27.1618971992188],[115.462183867188,27.1482009101563],[115.482120390625,27.1506813789063],[115.501793242188,27.1182888007813],[115.518453398438,27.1049489570313],[115.531890898438,27.0881642890626],[115.547100859375,27.0900563789063],[115.603697539063,27.044731671875],[115.599625273438,27.0119753242187],[115.621793242188,26.9742653632813],[115.604483671875,26.9431716132813],[115.563863554688,26.9260549140625],[115.561666289063,26.9083888984376],[115.573917265625,26.8985817695313],[115.541793242188,26.8893971992188],[115.507769804688,26.8693971992188],[115.484600859375,26.8822927070313],[115.455777617188,26.9182888007813],[115.451685820313,26.9091555000001],[115.454107695313,26.88968284375],[115.437345,26.8876003242188],[115.381007109375,26.8946071601563],[115.382965117188,26.8788405585937],[115.377345,26.833843],[115.362545195313,26.8391530585938],[115.342345,26.8379494453125],[115.327193632813,26.8709645820313],[115.29228640625,26.8584401679688],[115.263233671875,26.8742287421876],[115.242628203125,26.9191237617188],[115.212061796875,26.9385622382813],[115.202628203125,26.9506911445313],[115.2226575,26.96858909375],[115.221749296875,26.983843],[115.222940703125,27.003843],[115.2220325,27.0190676093751],[115.235494414063,27.043843],[115.20935671875,27.0919435859376],[115.152120390625,27.0885305000001],[115.116168242188,27.1080666328125],[115.102628203125,27.0785622382813],[115.08146609375,27.0691237617188],[115.083194609375,27.09808128125],[115.072061796875,27.1185622382813],[115.067345,27.1638430000001],[115.07170046875,27.16948753125],[115.111226835938,27.1931276679688],[115.08869265625,27.2105202460938],[115.058761015625,27.2060964179688],[115.023482695313,27.251801984375],[115.0125403125,27.2910890937501],[114.983746367188,27.2868337226562],[114.972647734375,27.2469728828125],[114.967345,27.253843],[114.950636015625,27.2801052070313],[114.952965117188,27.298843],[114.951666289063,27.3092971015626],[114.97025515625,27.3241799140626],[114.914659453125,27.3172658515625],[114.937994414063,27.3569606757813],[114.919547148438,27.4381667304688],[114.869298125,27.459341046875],[114.873590117188,27.493843],[114.871099882813,27.5138430000001],[114.872965117188,27.528843],[114.87166140625,27.5393581367188],[114.887345,27.5438430000001],[114.90298953125,27.54819846875],[114.940299101563,27.5628664375],[114.974561796875,27.5488430000001],[114.971529570313,27.5283303046875],[114.98298953125,27.51948753125],[114.99170046875,27.49819846875],[115.0236340625,27.4851296210938]]]]}},{type:Feature,properties:{name:吉州区,id:360802},geometry:{type:MultiPolygon,coordinates:[[[[115.023482695313,27.251801984375],[115.058761015625,27.2060964179688],[115.08869265625,27.2105202460938],[115.111226835938,27.1931276679688],[115.07170046875,27.16948753125],[115.067345,27.1638430000001],[115.03170046875,27.1494875312501],[114.992496367188,27.1178005195313],[114.987345,27.063843],[114.950689726563,27.0405226875],[114.953839140625,27.0658693671875],[114.885318632813,27.0573464179688],[114.850006132813,27.0365895820312],[114.812896757813,27.0442653632813],[114.8341028125,27.080337140625],[114.804791289063,27.1301955390625],[114.792896757813,27.1622731757813],[114.85189578125,27.2095217109375],[114.867345,27.2076003242188],[114.882345,27.2094655585938],[114.892345,27.2082204414063],[114.91732546875,27.2113283515626],[114.931793242188,27.2293971992188],[114.967345,27.253843],[114.972647734375,27.2469728828125],[114.983746367188,27.2868337226562],[115.0125403125,27.2910890937501],[115.023482695313,27.251801984375]]]]}},{type:Feature,properties:{name:井冈山市,id:360881},geometry:{type:MultiPolygon,coordinates:[[[[114.04189578125,26.8101906562501],[114.072056914063,26.797798078125],[114.084456816406,26.80024925],[114.113170195313,26.7796681953125],[114.123785429688,26.764858625],[114.163170195313,26.7496681953125],[114.176571074219,26.7309719062501],[114.19947390625,26.7264455390625],[114.213170195313,26.7480178046875],[114.227345,26.7847707343751],[114.268577910156,26.7766237617188],[114.311519804688,26.7896681953126],[114.337345,26.793843],[114.348245878906,26.7863161445313],[114.333260527344,26.7279274726563],[114.315513945313,26.7156740546876],[114.307345,26.683843],[114.278726835938,26.6943532539062],[114.259906035156,26.652173078125],[114.282913847656,26.6109377265625],[114.281422148438,26.5923561835938],[114.25197390625,26.57921409375],[114.21271609375,26.5538088203125],[114.306077910156,26.4999806953126],[114.28197390625,26.47921409375],[114.25728640625,26.4505617500001],[114.300990019531,26.4310622382813],[114.31197390625,26.419321515625],[114.22810671875,26.36679221875],[114.168875761719,26.38300315625],[114.15271609375,26.4192140937501],[114.137552519531,26.4322805],[114.087345,26.413843],[114.081634550781,26.4287013984375],[114.09312625,26.4792995429688],[114.07166140625,26.488344953125],[114.074364042969,26.5100710273438],[114.100582304688,26.5782790351563],[114.018216582031,26.5902663398438],[114.002899199219,26.6093971992188],[113.972928496094,26.6220241523438],[113.917225371094,26.6150954414062],[113.883116484375,26.6351467109376],[113.872742949219,26.65976096875],[113.857345,26.653843],[113.848089628906,26.7645876289063],[113.837345,26.793843],[113.861903105469,26.8099196601563],[113.892345,26.8039040351563],[113.922965117188,26.8099538398438],[113.938319121094,26.7885305],[113.99685671875,26.7769631171875],[114.033170195313,26.7980178046875],[114.04189578125,26.8101906562501]]]]}},{type:Feature,properties:{name:青原区,id:360803},geometry:{type:MultiPolygon,coordinates:[[[[115.083194609375,27.09808128125],[115.08146609375,27.0691237617188],[115.102628203125,27.0785622382813],[115.116168242188,27.1080666328125],[115.152120390625,27.0885305000001],[115.20935671875,27.0919435859376],[115.235494414063,27.043843],[115.2220325,27.0190676093751],[115.222940703125,27.003843],[115.221749296875,26.983843],[115.2226575,26.96858909375],[115.202628203125,26.9506911445313],[115.212061796875,26.9385622382813],[115.242628203125,26.9191237617188],[115.263233671875,26.8742287421876],[115.29228640625,26.8584401679688],[115.327193632813,26.8709645820313],[115.342345,26.8379494453125],[115.362545195313,26.8391530585938],[115.377345,26.833843],[115.387891875,26.7959694648438],[115.421832304688,26.8009841132813],[115.44322390625,26.7732668281251],[115.500064726563,26.7392751289063],[115.50314578125,26.7184108710938],[115.477345,26.683843],[115.4621496875,26.6774587226563],[115.442789335938,26.690063703125],[115.425933867188,26.68628440625],[115.41326296875,26.6679274726563],[115.365064726563,26.6555593085937],[115.34326296875,26.6697585273438],[115.327345,26.6738430000001],[115.319176054688,26.7056740546875],[115.30142703125,26.7179274726563],[115.288970976563,26.7512209296875],[115.216475859375,26.79062034375],[115.192940703125,26.8247096992188],[115.14142703125,26.8379274726563],[115.12326296875,26.8497585273438],[115.10142703125,26.8579274726563],[115.080943632813,26.8875954414063],[115.087056914063,26.9148610664063],[115.0544934375,26.9568752265626],[115.027345,26.963843],[115.054381132813,27.0000637031251],[115.051129179688,27.0220607734375],[115.005030546875,27.0409279609375],[114.987345,27.063843],[114.992496367188,27.1178005195313],[115.03170046875,27.1494875312501],[115.067345,27.1638430000001],[115.072061796875,27.1185622382813],[115.083194609375,27.09808128125]]]]}},{type:Feature,properties:{name:遂川县,id:360827},geometry:{type:MultiPolygon,coordinates:[[[[114.027345,25.9838430000001],[114.027345,25.973843],[114.017345,25.973843],[114.017345,25.9838430000001],[114.027345,25.9838430000001]]],[[[114.027345,25.9838430000001],[114.022806425781,25.9893044257813],[114.003761015625,26.0051271796875],[114.022806425781,26.0383815742188],[114.041497832031,26.0814772773437],[114.091529570313,26.0763771796876],[114.121883574219,26.0817678046875],[114.101151152344,26.0989870429688],[114.139869414063,26.1157814765625],[114.188016386719,26.1299098945313],[114.223719511719,26.1503566718751],[114.221326933594,26.1738430000001],[114.223597441406,26.196137921875],[114.171807890625,26.2113356757813],[114.133538847656,26.2074367500001],[114.067345,26.1695241523438],[114.032667265625,26.1893849921875],[114.013538847656,26.18743675],[113.961156035156,26.1574343085938],[113.940882597656,26.1595021796876],[113.942894316406,26.179233625],[113.937345,26.183843],[113.944969511719,26.1962184882813],[113.967562285156,26.2101393867188],[113.9823840625,26.2536330390625],[114.02420046875,26.2678835273438],[114.017576933594,26.2891481757812],[114.037113066406,26.3485378242187],[114.02666140625,26.3820900703126],[114.061158476563,26.4100295234375],[114.087345,26.413843],[114.137552519531,26.4322805],[114.15271609375,26.4192140937501],[114.168875761719,26.38300315625],[114.22810671875,26.36679221875],[114.31197390625,26.419321515625],[114.300990019531,26.4310622382813],[114.25728640625,26.4505617500001],[114.28197390625,26.47921409375],[114.306077910156,26.4999806953126],[114.21271609375,26.5538088203125],[114.25197390625,26.57921409375],[114.281422148438,26.5923561835938],[114.282913847656,26.6109377265625],[114.259906035156,26.652173078125],[114.278726835938,26.6943532539062],[114.307345,26.683843],[114.328507109375,26.675708234375],[114.351898222656,26.689458234375],[114.458370390625,26.7027028632813],[114.494527617188,26.6762917304688],[114.490582304688,26.7080031562501],[114.502799101563,26.7095217109376],[114.507345,26.7038430000001],[114.514010039063,26.6805397773438],[114.571793242188,26.6342653632813],[114.552896757813,26.5782888007813],[114.541793242188,26.5693971992188],[114.532896757813,26.5582888007813],[114.512896757813,26.5422731757813],[114.542725859375,26.495376203125],[114.572345,26.4779640937501],[114.591983671875,26.4895095039062],[114.607345,26.4876003242187],[114.626422148438,26.4899709296876],[114.651793242188,26.4582888007813],[114.667335234375,26.4458425117187],[114.6502746875,26.4168166328126],[114.701265898438,26.3868434882813],[114.767345,26.3950612617188],[114.749761992188,26.3137844062501],[114.731793242188,26.2993971992188],[114.667345,26.203843],[114.642486601563,26.1980837226563],[114.600924101563,26.2042263007812],[114.603463164063,26.2214015937501],[114.57869265625,26.2405202460937],[114.557838164063,26.2374391914063],[114.542857695313,26.2180275703125],[114.522345,26.221059796875],[114.51298953125,26.19819846875],[114.487345,26.163843],[114.451793242188,26.1393971992188],[114.442896757813,26.1182888007813],[114.423240996094,26.0848513007813],[114.412899199219,26.1093971992188],[114.371312285156,26.1212868476563],[114.352899199219,26.0982888007813],[114.30267703125,26.0629885078126],[114.282899199219,26.0382888007812],[114.215579863281,26.0265749335938],[114.173011503906,26.03187034375],[114.120159941406,26.0008034492188],[114.041790800781,25.9893971992187],[114.027345,25.9838430000001]]]]}},{type:Feature,properties:{name:泰和县,id:360826},geometry:{type:MultiPolygon,coordinates:[[[[114.864039335938,26.93745628125],[114.86021609375,26.9067116523438],[114.881983671875,26.9195095039063],[114.892345,26.9182204414063],[114.907345,26.9200856757813],[114.93150515625,26.9170827460938],[114.932965117188,26.928843],[114.931656523438,26.9393776679688],[114.992896757813,26.9482888007813],[115.011793242188,26.9593971992188],[115.027345,26.963843],[115.0544934375,26.9568752265626],[115.087056914063,26.9148610664063],[115.080943632813,26.8875954414063],[115.10142703125,26.8579274726563],[115.12326296875,26.8497585273438],[115.14142703125,26.8379274726563],[115.192940703125,26.8247096992188],[115.216475859375,26.79062034375],[115.288970976563,26.7512209296875],[115.30142703125,26.7179274726563],[115.319176054688,26.7056740546875],[115.327345,26.6738430000001],[115.32326296875,26.6679274726563],[115.30142703125,26.6597585273438],[115.29326296875,26.6379274726562],[115.26142703125,26.5997585273438],[115.25326296875,26.5779274726563],[115.2179309375,26.5535353828125],[115.225308867188,26.5206276679688],[115.212345,26.5177223945313],[115.168800078125,26.5274831367188],[115.095426054688,26.5000270820313],[115.069176054688,26.4620119453125],[115.057345,26.453843],[115.03170046875,26.4581984687501],[115.0091028125,26.4874782539063],[115.02677859375,26.5011232734376],[114.9762121875,26.5401540351563],[114.96205203125,26.53806175],[114.923521757813,26.553208234375],[114.901832304688,26.612661359375],[114.88170046875,26.62819846875],[114.86298953125,26.6527614570313],[114.884483671875,26.6693556953125],[114.881300078125,26.6909059882813],[114.861832304688,26.6880275703125],[114.85298953125,26.6994875312501],[114.835264921875,26.70819846875],[114.82298953125,26.6781984687501],[114.807901640625,26.653188703125],[114.760518828125,26.6914821601563],[114.763433867188,26.7112209296875],[114.742345,26.7081032539063],[114.72978640625,26.7099611640626],[114.698922148438,26.6699733710938],[114.663863554688,26.6594875312501],[114.612965117188,26.72542503125],[114.58158328125,26.73819846875],[114.542652617188,26.6877663398438],[114.507345,26.7038430000001],[114.502799101563,26.7095217109376],[114.490582304688,26.7080031562501],[114.494527617188,26.6762917304688],[114.458370390625,26.7027028632813],[114.351898222656,26.689458234375],[114.328507109375,26.675708234375],[114.307345,26.683843],[114.315513945313,26.7156740546876],[114.333260527344,26.7279274726563],[114.348245878906,26.7863161445313],[114.337345,26.793843],[114.341519804688,26.7996681953126],[114.363170195313,26.8080178046876],[114.371519804688,26.8196681953125],[114.393619414063,26.8355080390626],[114.471104765625,26.8201955390625],[114.477345,26.843843],[114.505050078125,26.8544924140625],[114.614405546875,26.823266828125],[114.651793242188,26.8893971992188],[114.682896757813,26.8982888007813],[114.71802859375,26.9239528632813],[114.767345,26.9300856757813],[114.79150515625,26.9270827460938],[114.792965117188,26.9388430000001],[114.790738554688,26.9567775703126],[114.84845828125,26.9639577460938],[114.864039335938,26.93745628125]]]]}},{type:Feature,properties:{name:万安县,id:360828},geometry:{type:MultiPolygon,coordinates:[[[[114.612965117188,26.72542503125],[114.663863554688,26.6594875312501],[114.698922148438,26.6699733710938],[114.72978640625,26.7099611640626],[114.742345,26.7081032539063],[114.763433867188,26.7112209296875],[114.760518828125,26.6914821601563],[114.807901640625,26.653188703125],[114.82298953125,26.6781984687501],[114.835264921875,26.70819846875],[114.85298953125,26.6994875312501],[114.861832304688,26.6880275703125],[114.881300078125,26.6909059882813],[114.884483671875,26.6693556953125],[114.86298953125,26.6527614570313],[114.88170046875,26.62819846875],[114.901832304688,26.612661359375],[114.923521757813,26.553208234375],[114.96205203125,26.53806175],[114.9762121875,26.5401540351563],[115.02677859375,26.5011232734376],[115.0091028125,26.4874782539063],[115.03170046875,26.4581984687501],[115.057345,26.453843],[115.05326296875,26.4379274726563],[115.040206328125,26.4289138007812],[115.025806914063,26.3646706367188],[115.06326296875,26.3197585273438],[115.072393828125,26.284165265625],[115.087345,26.273843],[115.072896757813,26.2482888007813],[115.037310820313,26.1995705390625],[115.072896757813,26.1893971992188],[115.081793242188,26.1782888007813],[115.09963015625,26.1640041328125],[115.067345,26.145024640625],[115.042896757813,26.1593971992188],[115.018785429688,26.169555890625],[114.993961210938,26.2005568671876],[114.906954375,26.2113796210938],[114.870181914063,26.1972463203125],[114.844508085938,26.2004396796875],[114.807735625,26.1863063789063],[114.777345,26.1900856757813],[114.752345,26.1869777656251],[114.730079375,26.1897463203125],[114.712896757813,26.1682888007813],[114.707345,26.163843],[114.701051054688,26.1740602851562],[114.660235625,26.1879689765625],[114.667345,26.203843],[114.731793242188,26.2993971992188],[114.749761992188,26.3137844062501],[114.767345,26.3950612617188],[114.701265898438,26.3868434882813],[114.6502746875,26.4168166328126],[114.667335234375,26.4458425117187],[114.651793242188,26.4582888007813],[114.626422148438,26.4899709296876],[114.607345,26.4876003242187],[114.591983671875,26.4895095039062],[114.572345,26.4779640937501],[114.542725859375,26.495376203125],[114.512896757813,26.5422731757813],[114.532896757813,26.5582888007813],[114.541793242188,26.5693971992188],[114.552896757813,26.5782888007813],[114.571793242188,26.6342653632813],[114.514010039063,26.6805397773438],[114.507345,26.7038430000001],[114.542652617188,26.6877663398438],[114.58158328125,26.73819846875],[114.612965117188,26.72542503125]]]]}},{type:Feature,properties:{name:峡江县,id:360823},geometry:{type:MultiPolygon,coordinates:[[[[115.284761992188,27.7289919257813],[115.335299101563,27.6899831367188],[115.31375125,27.6733498359376],[115.308834257813,27.6401003242188],[115.347345,27.63440940625],[115.3827746875,27.6396462226563],[115.41170046875,27.61819846875],[115.43298953125,27.6094875312501],[115.44170046875,27.5981984687501],[115.468311796875,27.5873097968751],[115.496768828125,27.5397243476563],[115.52298953125,27.51948753125],[115.527345,27.5038430000001],[115.521246367188,27.484575421875],[115.444517851563,27.4602834296875],[115.422535429688,27.4486525703125],[115.347345,27.413843],[115.31298953125,27.4594875312501],[115.28670046875,27.4702468085938],[115.272935820313,27.5196706367188],[115.262345,27.5181032539063],[115.243922148438,27.5208254218751],[115.22298953125,27.50819846875],[115.196143828125,27.4994875312501],[115.16298953125,27.51948753125],[115.138746367188,27.52819846875],[115.143150664063,27.4983791328125],[115.098424101563,27.44948753125],[115.080806914063,27.4723097968751],[115.051954375,27.4680471015625],[115.0236340625,27.4851296210938],[114.99170046875,27.49819846875],[114.98298953125,27.51948753125],[114.971529570313,27.5283303046875],[114.974561796875,27.5488430000001],[114.940299101563,27.5628664375],[114.90298953125,27.54819846875],[114.887345,27.5438430000001],[114.883985625,27.580483625],[114.877345,27.593843],[114.886988554688,27.6063356757813],[114.93170046875,27.63948753125],[114.963990507813,27.6527028632813],[114.960225859375,27.6781984687501],[114.98298953125,27.66948753125],[115.015924101563,27.6496193671875],[115.009429960938,27.6935866523438],[115.035264921875,27.7270583320313],[115.05869265625,27.7305202460938],[115.07298953125,27.7194875312501],[115.084810820313,27.7041701484375],[115.10298953125,27.71819846875],[115.126143828125,27.7481984687501],[115.13312625,27.7291164375],[115.130225859375,27.70948753125],[115.15298953125,27.71819846875],[115.164449492188,27.7330495429688],[115.203018828125,27.756313703125],[115.247345,27.763843],[115.25170046875,27.73819846875],[115.284761992188,27.7289919257813]]]]}},{type:Feature,properties:{name:新干县,id:360824},geometry:{type:MultiPolygon,coordinates:[[[[115.417345,27.953843],[115.420767851563,27.9416506171876],[115.429537382813,27.9504201484376],[115.429058867188,27.9679470039063],[115.44375125,27.9340724921875],[115.464845,27.9193044257813],[115.461793242188,27.949233625],[115.474893828125,27.9601125312501],[115.518492460938,27.9556691718751],[115.531881132813,27.9359181953125],[115.511881132813,27.9193044257813],[115.502808867188,27.9042263007813],[115.539488554688,27.873755109375],[115.572808867188,27.8593044257813],[115.601881132813,27.8383815742188],[115.635269804688,27.8193044257813],[115.647345,27.833843],[115.67857546875,27.8122805],[115.69142703125,27.7779274726563],[115.72326296875,27.7597585273438],[115.727345,27.7338430000001],[115.721807890625,27.7154518867188],[115.67271609375,27.65847190625],[115.635328398438,27.6262599921875],[115.601920195313,27.5791384101563],[115.60295046875,27.566333234375],[115.587345,27.523843],[115.58326296875,27.5179274726563],[115.527345,27.5038430000001],[115.52298953125,27.51948753125],[115.496768828125,27.5397243476563],[115.468311796875,27.5873097968751],[115.44170046875,27.5981984687501],[115.43298953125,27.6094875312501],[115.41170046875,27.61819846875],[115.3827746875,27.6396462226563],[115.347345,27.63440940625],[115.308834257813,27.6401003242188],[115.31375125,27.6733498359376],[115.335299101563,27.6899831367188],[115.284761992188,27.7289919257813],[115.25170046875,27.73819846875],[115.247345,27.763843],[115.288204375,27.7764601875],[115.362061796875,27.8591237617188],[115.382628203125,27.8685622382813],[115.387345,27.873843],[115.402843046875,27.8787502265625],[115.381685820313,27.8983522773438],[115.4026965625,27.9288845039063],[115.382862578125,27.94726096875],[115.417345,27.953843]]]]}},{type:Feature,properties:{name:永丰县,id:360825},geometry:{type:MultiPolygon,coordinates:[[[[115.652999296875,27.1884084296876],[115.672955351563,27.1472731757813],[115.70244265625,27.1189430976563],[115.712633085938,27.1083376289062],[115.8117590625,27.1103615546875],[115.822603789063,27.0880080390625],[115.84244265625,27.0689430976563],[115.863697539063,27.0034499335938],[115.89224734375,26.9887429023438],[115.927345,26.9738430000001],[115.92244265625,26.9587380195312],[115.912252226563,26.9589479804688],[115.86244265625,26.9187429023438],[115.83224734375,26.8989430976563],[115.822086210938,26.8780080390626],[115.801690703125,26.8584084296875],[115.7778528125,26.8092775703125],[115.698775664063,26.8572341132813],[115.682242460938,26.808930890625],[115.682647734375,26.7889382148438],[115.664625273438,26.7716213203125],[115.702257109375,26.7587380195313],[115.722237578125,26.759145734375],[115.723053007813,26.7190383125001],[115.702242460938,26.70894065625],[115.702447539063,26.6987526679688],[115.687345,26.6638430000001],[115.667174101563,26.6559133125],[115.617345,26.66327659375],[115.538487578125,26.6516237617188],[115.522276640625,26.6912233710938],[115.477345,26.683843],[115.50314578125,26.7184108710938],[115.500064726563,26.7392751289063],[115.44322390625,26.7732668281251],[115.421832304688,26.8009841132813],[115.387891875,26.7959694648438],[115.377345,26.833843],[115.382965117188,26.8788405585937],[115.381007109375,26.8946071601563],[115.437345,26.8876003242188],[115.454107695313,26.88968284375],[115.451685820313,26.9091555000001],[115.455777617188,26.9182888007813],[115.484600859375,26.8822927070313],[115.507769804688,26.8693971992188],[115.541793242188,26.8893971992188],[115.573917265625,26.8985817695313],[115.561666289063,26.9083888984376],[115.563863554688,26.9260549140625],[115.604483671875,26.9431716132813],[115.621793242188,26.9742653632813],[115.599625273438,27.0119753242187],[115.603697539063,27.044731671875],[115.547100859375,27.0900563789063],[115.531890898438,27.0881642890626],[115.518453398438,27.1049489570313],[115.501793242188,27.1182888007813],[115.482120390625,27.1506813789063],[115.462183867188,27.1482009101563],[115.401890898438,27.1618971992188],[115.372345,27.1582204414062],[115.354019804688,27.1605007148438],[115.342159453125,27.2019802070313],[115.319947539063,27.2197682929688],[115.298453398438,27.2949489570313],[115.281666289063,27.3083888984375],[115.282965117188,27.3188430000001],[115.276339140625,27.3721193671875],[115.332896757813,27.3882888007813],[115.347345,27.413843],[115.422535429688,27.4486525703125],[115.444517851563,27.4602834296875],[115.521246367188,27.484575421875],[115.527345,27.5038430000001],[115.58326296875,27.5179274726563],[115.587345,27.523843],[115.601138945313,27.5105886054688],[115.64224734375,27.4587429023438],[115.722154570313,27.4475881171875],[115.70224734375,27.4089430976563],[115.69244265625,27.3687429023438],[115.6724621875,27.3495436835938],[115.672242460938,27.3387599921876],[115.685699492188,27.2730446601562],[115.61845828125,27.2512233710938],[115.632428007813,27.2081740546876],[115.652999296875,27.1884084296876]]]]}},{type:Feature,properties:{name:永新县,id:360830},geometry:{type:MultiPolygon,coordinates:[[[[114.127345,27.223843],[114.144842558594,27.1925881171876],[114.18298953125,27.20819846875],[114.202120390625,27.2197389960938],[114.267240019531,27.2007521796876],[114.282110625,27.2200173164063],[114.301954375,27.2080471015625],[114.322345,27.211059796875],[114.343143339844,27.1602419257812],[114.38298953125,27.12948753125],[114.418248320313,27.0787868476562],[114.447345,27.073843],[114.45170046875,27.03819846875],[114.473902617188,27.0082521796876],[114.44298953125,26.96819846875],[114.421522246094,26.9594142890626],[114.423822050781,26.943843],[114.419266386719,26.913012921875],[114.44170046875,26.85819846875],[114.477345,26.843843],[114.471104765625,26.8201955390625],[114.393619414063,26.8355080390626],[114.371519804688,26.8196681953125],[114.363170195313,26.8080178046876],[114.341519804688,26.7996681953126],[114.337345,26.793843],[114.311519804688,26.7896681953126],[114.268577910156,26.7766237617188],[114.227345,26.7847707343751],[114.213170195313,26.7480178046875],[114.19947390625,26.7264455390625],[114.176571074219,26.7309719062501],[114.163170195313,26.7496681953125],[114.123785429688,26.764858625],[114.113170195313,26.7796681953125],[114.084456816406,26.80024925],[114.072056914063,26.797798078125],[114.04189578125,26.8101906562501],[114.033170195313,26.7980178046875],[113.99685671875,26.7769631171875],[113.938319121094,26.7885305],[113.922965117188,26.8099538398438],[113.892345,26.8039040351563],[113.861903105469,26.8099196601563],[113.837345,26.793843],[113.831370878906,26.8090407539063],[113.864852324219,26.8541994453125],[113.88298953125,26.8681984687501],[113.898643828125,26.924419171875],[113.91298953125,26.9481984687501],[113.917345,26.963843],[113.933949003906,26.9935036445313],[113.95298953125,27.00819846875],[113.96170046875,27.02948753125],[113.976551542969,27.0409499335938],[113.993140898438,27.068452375],[113.989586210938,27.0925099921876],[114.022838164063,27.1481081367188],[114.043922148438,27.160825421875],[114.0701965625,27.1569435859375],[114.0953528125,27.2184084296875],[114.127345,27.223843]]]]}}]}

 

Tags:

文章评论

最 近 更 新
热 点 排 行
Js与CSS工具
代码转换工具

<