forked from marsprj/Map5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
137 lines (103 loc) · 23.7 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="lib/GeoBeans.js"></script>
<script type="text/javascript" src="lib/GeoBeans/BaseTypes/Class.js"></script>
<script type="text/javascript" src="lib/GeoBeans/BaseTypes/Envelope.js"></script>
<script type="text/javascript" src="lib/GeoBeans/Geometry.js"></script>
<script type="text/javascript" src="lib/GeoBeans/Geometry/GeometryCollection.js"></script>
<script type="text/javascript" src="lib/GeoBeans/Geometry/Point.js"></script>
<script type="text/javascript" src="lib/GeoBeans/Geometry/LineString.js"></script>
<script type="text/javascript" src="lib/GeoBeans/Geometry/LinearRing.js"></script>
<script type="text/javascript" src="lib/GeoBeans/Geometry/Polygon.js"></script>
<script type="text/javascript" src="lib/GeoBeans/Geometry/MultiPoint.js"></script>
<script type="text/javascript" src="lib/GeoBeans/Geometry/MultiLineString.js"></script>
<script type="text/javascript" src="lib/GeoBeans/Geometry/MultiPolygon.js"></script>
<script type="text/javascript" src="lib/GeoBeans/Transformation.js"></script>
<script type="text/javascript" src="lib/GeoBeans/Layer.js"></script>
<script type="text/javascript" src="lib/GeoBeans/Layer/Tile.js"></script>
<script type="text/javascript" src="lib/GeoBeans/Layer/TileLayer.js"></script>
<script type="text/javascript" src="lib/GeoBeans/Layer/OsmLayer.js"></script>
<!--<script type="text/javascript" src="lib/GeoBeans/Layer/BaiduLayer.js"></script>-->
<script type="text/javascript" src="lib/GeoBeans/Layer/BingLayer.js"></script>
<script type="text/javascript" src="lib/GeoBeans/Feature.js"></script>
<script type="text/javascript" src="lib/GeoBeans/Layer/FeatureLayer.js"></script>
<script type="text/javascript" src="lib/GeoBeans/Renderer.js"></script>
<script type="text/javascript" src="lib/GeoBeans/Map.js"></script>
<script type="text/javascript">
var mapObj = null;
function init(){
mapObj = new GeoBeans.Map("myCanvas");
var fLayer = null;
var point = null;
var lineString = null;
var ring1 = null;
var ring2 = null;
var feature = null;
var pt1, pt2, pt3, pt4, p5;
// Point
fLayer = new GeoBeans.Layer.FeatureLayer("dots");
point = new GeoBeans.Geometry.Point(-180,-90);
//point = new GeoBeans.Geometry.Point(400, 300);
feature = new GeoBeans.Feature(point, null);
fLayer.addFeature(feature);
/*
// LineString
pt1 = new GeoBeans.Geometry.Point(0,0);
pt2 = new GeoBeans.Geometry.Point(400,400);
pt3 = new GeoBeans.Geometry.Point(0,800);
lineString = new GeoBeans.Geometry.LineString([pt1,pt2,pt3]);
feature = new GeoBeans.Feature(lineString, null);
fLayer.addFeature(feature);
// Polygon
pt1 = new GeoBeans.Geometry.Point(400,200);
pt2 = new GeoBeans.Geometry.Point(700,200);
pt3 = new GeoBeans.Geometry.Point(700,600);
pt4 = new GeoBeans.Geometry.Point(400,600);
pt5 = new GeoBeans.Geometry.Point(400,200);
ring1 = new GeoBeans.Geometry.LinearRing([pt1,pt2,pt3,pt4,pt5]);
pt1 = new GeoBeans.Geometry.Point(500,300);
pt2 = new GeoBeans.Geometry.Point(500,500);
pt3 = new GeoBeans.Geometry.Point(600,500);
pt4 = new GeoBeans.Geometry.Point(600,300);
pt5 = new GeoBeans.Geometry.Point(500,300);
ring2 = new GeoBeans.Geometry.LinearRing([pt1,pt2,pt3,pt4,pt5]);
polygon = new GeoBeans.Geometry.Polygon([ring1,ring2]);
feature = new GeoBeans.Feature(polygon, null);
fLayer.addFeature(feature);
*/
polygon = createPolygon();
feature = new GeoBeans.Feature(polygon, null);
fLayer.addFeature(feature);
mapObj.addLayer(fLayer);
mapObj.setExtent(new GeoBeans.Envelope(-180,-90,180,90));
mapObj.draw();
mapObj.renderer.drawImage();
}
function createPolygon(){
var str = "102.17151642,22.55068779,101.8660965,22.40922928,101.75802612,22.3006649,101.7387085,22.15450859,101.80060577,21.88819695,101.90313721,21.72371292,101.95655823,21.4890995,101.90744781,21.33641624,101.78781891,21.24047852,101.4421463,21.27655983,101.29740906,21.37096596,101.21765137,21.45939255,101.14865112,21.56693077,101.09832001,21.73807907,100.81583405,21.55229568,100.52445984,21.48075485,100.41362,21.5181942,100.2438736,21.63784981,100.09033203,21.97348595,99.95915985,22.1441555,99.74252319,22.12385941,99.5145874,22.12252808,99.41221619,22.16637993,99.35960388,22.32481575,99.68723297,23.03784752,99.67259216,23.1584053,99.43765259,23.20147896,99.18865967,23.16828918,99.09763336,23.31380463,98.9728241,24.10672951,98.90242004,24.16346169,98.68715668,24.15586472,98.34041595,24.11575699,97.9715271,23.91680145,97.83167267,23.87788391,97.73426056,23.90907669,97.73451996,24.02971649,97.83483124,24.29060555,97.76178741,24.60763741,97.72771454,24.81696892,98.00548553,25.19948959,98.09162903,25.28885651,98.31084442,25.41073418,98.58595276,25.64719391,98.77907562,25.97204018,98.93740845,26.3601532,98.92902374,26.75362968,98.84088898,27.49571419,98.77539825,27.55880165,98.54875946,27.54480934,98.41968536,27.56311035,98.3217392,27.70217323,98.21232605,28.10772705,98.03366089,28.30343246,97.8066864,28.42906761,97.68212891,28.40930176,97.54434967,28.25620461,97.54408264,28.19908714,97.26330566,28.23555946,96.93457794,28.31616592,96.63877106,28.35255051,96.5037384,28.37716866,96.45822906,28.40228462,96.52023315,28.52323341,96.67950439,28.72721481,96.65898895,28.89845276,96.33708191,29.22025871,96.1322937,29.39676857,95.51262665,29.01881409,95.3429718,28.99880981,94.90418243,29.14224815,94.77537537,29.21768188,94.61538696,29.17867661,94.36986542,29.04400063,93.87263489,28.71748734,93.49924469,28.60111237,93.25502777,28.43470573,92.74972534,27.93674278,92.57093811,27.81511307,92.24973297,27.71806908,91.89662933,27.70334816,91.81141663,27.65842247,91.6632843,27.9368515,91.52269745,28.03124428,91.35591125,28.04933929,90.60921478,28.07044029,90.39390564,28.16441345,90.25510406,28.29690361,90.06707001,28.28948212,89.99999237,28.24341774,89.84339905,28.13586044,89.56919861,27.89310074,89.00624084,27.19796371,88.91086578,27.49575615,88.93436432,27.88309479,88.87197876,27.96525383,88.76773071,27.99639893,88.55596924,27.95075035,88.40092468,27.8927269,88.10598755,27.96443367,87.95328522,27.83794594,87.8001709,27.890028,87.41802979,27.86026573,87.27432251,28.02395439,86.99087524,28.15044022,86.80760193,28.15044022,86.77171326,28.0016346,86.64940643,27.96443367,86.34151459,28.13555717,86.34590149,27.97187614,86.23932648,27.92722702,86.17571259,28.13555717,85.9328537,28.35876656,85.76847839,28.3290081,85.34783173,28.35876656,85.34171295,28.47780991,85.42025757,28.6563797,85.27351379,28.66382217,85.12393951,28.55221367,84.47062683,28.95399284,84.50197601,29.08047676,84.42220306,29.25160408,84.29206085,29.32600212,83.97255707,29.27391815,83.901474,29.19952011,83.60567474,29.55665398,83.40107727,29.68313599,83.3334198,29.62361336,83.12123871,29.72033882,82.79483795,29.9881916,82.40460205,30.10723495,82.34534454,30.3825264,81.85941315,30.47180557,81.77627563,30.38996696,81.65234375,30.41972351,81.59198761,30.18907738,81.46765137,30.04771423,81.33297729,30.07003403,81.22496796,30.26348305,80.83808136,30.53133202,80.76876831,30.50156975,80.42884827,30.61317444,80.48084259,30.7768631,79.99580383,31.03727341,79.8322525,30.98519135,79.48492432,31.364645,79.31245422,31.47624969,79.09793091,31.33488464,79.00899506,31.364645,78.96434021,31.55809021,79.06129456,31.65481567,78.93858337,31.81850052,78.985466,32.01939011,78.72476959,32.28724289,78.65435028,32.59973145,79.00762939,32.68901825,79.02245331,32.5253334,79.17420959,32.40628815,79.33982849,32.42860794,79.50893402,32.55509186,79.76898956,32.71878052,79.60404205,33.03126907,79.65062714,33.21727753,79.34456635,33.26191711,79.32472229,33.34376144,79.28364563,33.37877655,78.9606781,33.42184067,78.82820129,33.52119827,78.81163788,33.7695961,78.77851868,34.03455353,78.8613205,34.11735153,79.01036072,34.21670914,78.91100311,34.33262634,78.71228027,34.51478577,78.34796906,34.56446457,78.24861145,34.7963028,78.04988861,35.25997543,78.04988861,35.49181366,77.82389069,35.42340851,77.75775909,35.48025894,77.62075806,35.53034973,77.01908112,35.57740021,76.7647171,35.77351761,76.68452454,35.81404495,76.63757324,35.90345764,76.5300293,35.90345764,76.29599762,35.81539536,76.18268585,35.94194794,76.09340668,36.04021072,75.95803833,36.07177353,76.0982666,36.30396652,76.09513092,36.52946854,75.99931335,36.64056015,75.83142853,36.78594589,75.55050659,36.7820549,75.42340088,36.72417068,75.42166901,36.92941666,75.17229462,36.98204041,75.03946686,37.00309753,74.91272736,36.90836334,74.8653717,36.95871735,74.72419739,37.02155304,74.70272827,37.06099701,74.5963974,37.06626129,74.59210968,37.18732834,74.85049438,37.16100693,74.93693542,37.22637558,75.09645081,37.2873497,75.13235474,37.39929962,75.21382141,37.48249054,75.12374115,37.55585098,75.19203186,37.71789169,75.08181763,37.82439804,75.1383667,38.01679611,75.11641693,38.0719223,75.04800415,38.0771904,75.03542328,38.18780899,75.03917694,38.31551743,74.90658569,38.53768158,74.78341675,38.60705185,74.4718399,38.62444305,74.37283325,38.65139771,74.27026367,38.57873917,74.0619812,38.55847931,73.91568756,38.73570633,73.88066101,38.87270737,73.97383881,38.97283936,73.96359253,39.43707657,73.96822357,39.46805191,74.03073883,39.80070496,74.08860779,39.89663315,74.21231842,39.9801712,74.85211182,40.29681778,75.63365936,40.62720871,75.79536438,40.64089584,75.82227325,40.60906219,75.90459442,40.35374832,76.05925751,40.3290329,76.28726196,40.39421082,76.68530273,40.45394516,76.80579376,40.56332016,77.01433563,40.91626358,77.22406006,41.12859344,77.33140564,41.14199448,77.89286041,41.03627396,78.09973145,41.0438118,78.3143158,41.08978271,78.60491943,41.24498749,78.89192963,41.56029129,79.07429504,41.6958046,79.27475739,41.76094818,79.87675476,41.91802216,80.3129425,42.01652527,80.45965576,42.10064316,80.48241425,42.17127228,80.46836853,42.25841141,80.40597534,42.6453743,80.41456604,42.82505035,80.55873108,43.00551605,80.8761673,43.25119019,80.97572327,43.39942932,80.92227936,43.61109543,80.79155731,43.80955887,80.63652039,44.0915451,80.62317657,44.70250702,80.4053421,44.76568604,80.24042511,44.739048,80.13610077,44.822155,80.1665802,44.91886902,80.26364899,45.05474472,80.44029236,45.13960648,81.24952698,45.25376511,81.73633575,45.34683228,81.8939743,45.37353134,82.11883545,45.29077911,82.62872314,45.18375397,82.80558777,45.21699905,82.90982819,45.28213501,82.98020935,45.39233398,82.92333221,45.52125549,82.64355469,45.75244904,82.70491791,45.94034195,82.83364868,46.21285629,83.03114319,46.5701561,83.26318359,47.08364105,83.45537567,47.31184769,83.94838715,47.19764709,84.27272797,47.13448715,84.53985596,47.07104874,85.17073822,47.03551483,85.49407196,47.06320953,85.68131256,47.1096344,85.88167572,47.285923,85.9522171,47.46159363,85.85623169,47.77943802,85.81291199,48.11730957,85.96559906,48.37842178,86.15808105,48.50315475,86.69815063,48.54511642,86.82800293,48.57185364,86.96575165,48.67029572,86.9813385,48.88538742,86.98639679,49.00927734,87.11172485,49.12733459,87.35588074,49.19384003,87.60354614,49.20900345,87.70596313,49.21527481,87.96208191,49.21664047,88.07206726,49.24985886,88.10002899,49.18477631,88.15858459,49.00248337,88.26663971,48.74891281,88.43358612,48.55439377,89.0191803,48.21906281,89.39459991,48.03242493,89.67098999,48.00140762,90,47.9264946,90.28474426,47.86165619,90.44367981,47.79751587,90.69967651,47.51955032,91.18115234,46.86680603,91.36191559,46.56967926,91.26520538,46.36838531,91.15854645,46.03126907,91.06198883,45.85612488,90.89588165,45.70006561,90.88018036,45.64181519,90.92772675,45.44823456,91.03274536,45.34546661,91.3584137,45.20518875,91.83601379,45.12385559,92.51305389,45.11461258,92.96112061,45.09768295,93.26161957,45.06059265,93.71076965,44.95988846,93.99520111,44.83917236,94.73530579,44.47657394,95.11251831,44.33718109,95.44764709,44.29399872,95.49472809,44.05002594,96.20181274,43.07793427,96.41225433,42.88022995,96.61213684,42.76587296,97.50213623,42.75790787,98.06091309,42.66476822,98.42168427,42.61545563,98.94604492,42.60549927,100.23358917,42.6317482,100.65477753,42.62123489,101.179039,42.61126709,101.93967438,42.55773163,102.17385101,42.48210144,102.54058075,42.23419952,102.99339294,42.07014084,103.71255493,41.87556076,104.13058472,41.82022476,104.42921448,41.84746552,104.70346832,41.81695557,104.81758881,41.68316269,105.01208496,41.59462357,105.22863007,41.60220718,105.53727722,41.73191071,106.18539429,41.972332,106.32183075,42.01790237,106.65306854,42.14138031,107.0205307,42.27149963,107.56246948,42.42821503,108.16474152,42.4315033,108.84580994,42.46084595,109.29035187,42.42483521,109.58319855,42.45205688,110.45690155,42.78366089,110.57594299,42.86123657,111.07597351,43.3321228,111.37752533,43.50698853,111.94673157,43.63843536,112.09347534,43.75476837,112.14896393,43.87704468,112.06429291,43.97932434,111.79453278,44.16411209,111.61985779,44.42014313,111.61827087,44.57437515,111.71483612,44.75488281,111.95738983,45.01989365,112.16299438,45.12418365,112.30534363,45.15719604,112.62832642,45.08800125,112.92906952,44.91575241,113.19509888,44.85932159,113.6374054,44.86170959,113.97237396,44.88280487,114.30622101,45.07773972,114.84279633,45.48709869,114.94327545,45.48118591,115.14060974,45.47580338,115.4213562,45.45149994,115.82501221,45.51176453,116.11180878,45.62308121,116.26776123,45.70786285,116.3765564,45.80533981,116.51690674,46.17448425,116.680336,46.3241272,116.891716,46.4158287,117.10062408,46.43635941,117.3183136,46.37930679,117.47674561,46.46426773,117.85079956,46.58924103,118.09341431,46.65528107,118.51474762,46.75465393,118.89872742,46.76967239,119.09293365,46.72540283,119.57632446,46.72151566,119.78504944,46.66437531,119.97150421,46.76249313,120.01990509,46.85988617,119.99842072,46.98283386,119.7292099,47.20821762,119.33355713,47.65362167,118.974823,47.87893677,118.73279572,47.96854401,118.31515503,48.06377029,118.1181488,48.06270599,117.58171844,47.70915985,117.45055389,47.74090576,117.25654602,47.92816925,117.11376953,47.96637726,116.85462189,47.95850372,116.51531219,47.93071365,116.09748077,47.75315094,115.94374847,47.73283005,115.92063141,47.74570847,115.80002594,48.12176895,115.97114563,48.38270187,116.52174377,49.26448822,116.83071136,49.8074379,116.96343994,49.94686508,116.98419952,49.93879318,117.18774414,49.86153412,117.69419098,49.6032486,117.8486557,49.6105957,118.04568481,49.65077209,119.1439743,49.98942947,119.49486542,50.14195633,119.55012512,50.24710464,119.52532959,50.3846817,119.36759949,50.54132843,119.34027863,50.60682678,119.38600922,50.71869278,119.57587433,50.91025925,119.76314545,51.1545372,120.06343842,51.50504684,120.3326416,51.75033188,120.94961548,52.02410126,121.02475739,52.38117599,120.97677612,52.49331665,120.7672348,52.63113403,120.51654053,52.64303207,120.14635468,52.60799026,120.20021057,52.72078705,120.36894989,52.84747314,120.90590668,53.20149231,121.12071991,53.27558899,121.39141846,53.33670044,122.22602844,53.40081024,122.60234833,53.45589828,123.14349365,53.50520325,123.55627441,53.52727127,124.07305908,53.43041992,124.53966522,53.21399689,124.84686279,53.12942886,125.47027588,53.1857338,125.71284485,53.17375946,126.05633545,52.96351624,126.3900528,52.5351181,126.87927246,51.46212006,127.30267334,50.74761581,127.71955872,49.89135742,127.91565704,49.71626663,128.14367676,49.6261673,128.70484924,49.47271729,129.39025879,49.35903931,130.5872345,48.9811821,130.67948914,48.91659546,130.81307983,48.52699661,131.01101685,47.94985199,131.12820435,47.74925995,131.43412781,47.76386642,131.72645569,47.77193451,132.47241211,47.79538345,132.74412537,47.89419174,133.17306519,48.0328331,133.78392029,48.17245483,134.31533813,48.26623917,134.72149658,48.28141785,134.83206177,48.23002243,134.8611145,48.11326599,134.91333008,47.93827057,134.92103577,47.71117783,134.66610718,47.52820206,134.36894226,47.35157394,134.23808289,47.03341293,134.11264038,46.63140106,133.8704071,46.1516304,133.58850098,45.6657753,133.44032288,45.47140121,133.19265747,45.16053772,132.98127747,45.00471115,132.73506165,45.04850006,132.42984009,45.14995956,132.12149048,45.25790405,131.94320679,45.27627182,131.19419861,44.83440018,131.17289734,44.58374023,131.32202148,44.18000031,131.35040283,43.88492966,131.34762573,43.60905457,131.33634949,43.43584061,131.2928772,43.37789154,131.3433075,43.24353409,131.27314758,43.09572983,131.0433197,42.90224075,130.47993469,42.69417191,130.42955017,42.66827393,130.16926575,42.97436523,130.05792236,42.97376251,129.94412231,42.91546631,129.77185059,42.75436783,129.6681366,42.43358231,129.23820496,42.19435501,128.959198,42.07761765,128.71730042,42.06991577,128.5136261,42.09439468,128.36395264,42.15117645,128.18771362,42.1246109,128.06443787,42.01514053,128.052948,41.86151886,128.28179932,41.5173645,128.30215454,41.4663353,128.06512451,41.3946991,127.62647247,41.37312698,127.39796448,41.44219589,127.17604065,41.55607986,127.05299377,41.73450089,126.85118866,41.72699738,126.67784119,41.66847992,126.36917877,41.20640945,126.0831604,40.96199799,125.61867523,40.71667099,124.92879486,40.44467163,124.69476318,40.29655457,124.50799561,40.09765244,124.3375473,39.86011505,124.30773926,39.90175629,124.12019348,39.8248558,123.57009125,39.76636124,123.24272156,39.68917465,122.2311554,39.27273178,121.94683075,39.10641861,121.69207001,38.89557648,121.42014313,38.7739296,121.26899719,38.76725388,121.32736206,38.88209534,121.71543884,39.18883133,121.86381531,39.34848785,121.65262604,39.39907455,121.48583984,39.36686325,121.41700745,39.50061035,121.44306946,39.5708046,121.87179565,39.92237854,121.99265289,40.09505081,122.24018097,40.28100967,122.31157684,40.37069321,122.28601837,40.50498581,121.95728302,40.75392532,121.63039398,40.88129807,121.57167816,40.88758469,121.28894043,40.87420654,121.21427155,40.86765289,120.99208832,40.70078659,120.47640991,40.16874313,120.31639099,40.09807587,120.02748108,40.05913544,119.75144958,39.95001602,119.5891571,39.86040497,119.41433716,39.65599823,119.35308075,39.47095108,119.29425812,39.35607529,119.18130493,39.24110794,118.98493195,39.18333054,118.76300049,39.18925858,118.6160965,39.06785202,118.47825623,39.01658249,118.27359009,39.27116013,118.11377716,39.27721405,117.9565506,39.21950912,117.77871704,38.9323082,117.64316559,38.61974335,117.68270111,38.46688843,117.79312897,38.30145264,118.04433441,38.18089294,118.40393829,38.06058502,118.94831085,38.08080673,119.07891083,37.96640015,119.07092285,37.72434616,119.01531219,37.46310425,119.04066467,37.22118759,119.15826416,37.09408951,119.48806763,37.06293869,119.80252075,37.1335907,120.1443634,37.36988449,120.3730545,37.59322739,120.62172699,37.69562912,120.86177826,37.75343704,120.99106598,37.72184753,121.39344025,37.44245529,121.63800812,37.35380936,122.09851074,37.39293671,122.26123047,37.38053513,122.47315216,37.31729507,122.59651947,37.31754684,122.48493195,36.99897766,122.4592514,36.75066376,122.18379211,36.83922195,122.05036163,36.87714767,121.81354523,36.8512001,121.0591507,36.60142136,120.74097443,36.40349197,120.70849609,36.07254028,120.47338104,36.00206757,120.40733337,36.05283737,120.40015411,36.17370987,120.34300232,36.21177292,120.11743927,36.16041565,120.17923737,35.95056915,120.11100769,35.78503036,119.8924942,35.56194305,119.26382446,35.05823898,119.20690918,34.95644379,119.22452545,34.70890427,119.50358582,34.60790253,119.82414246,34.38635635,120.17726135,34.15219498,120.35309601,33.91130447,120.54394531,33.35302734,120.84425354,33.06159592,120.92304993,32.8649559,120.86452484,32.56008911,120.94197083,32.47770691,121.25442505,32.34502029,121.43419647,32.07873917,121.68733215,31.96498108,121.80962372,31.84459877,121.84870148,31.70499992,121.82697296,31.63512611,121.47193146,31.46931076,121.5115509,31.43763542,121.70253754,31.29835892,121.84389496,30.94309235,121.83553314,30.80974007,121.77259827,30.72707367,121.53209686,30.70751953,121.23913574,30.61167526,120.81233215,30.36315346,120.4305954,30.26712227,120.14733124,30.13319016,120.47121429,30.0386219,120.64152527,30.01358223,121.06639862,30.20495224,121.28618622,30.23080254,121.35890961,30.20555115,121.59493256,29.9393692,121.76889801,29.8635273,121.97398376,29.85125351,121.97802734,29.78142548,121.87405396,29.6415081,121.70210266,29.5395546,121.56557465,29.4313221,121.61512756,29.36157608,121.76186371,29.37458801,121.85282898,29.33667946,121.77041626,29.19045258,121.63617706,28.85363197,121.54949951,28.56135178,121.56218719,28.40263557,121.46337128,28.19922256,121.3695755,28.14186859,121.21222687,28.29395294,121.14604187,28.23030281,120.89016724,27.88686752,120.70956421,27.60707664,120.6125412,27.32746315,120.55547333,27.19398499,120.28775787,27.00291252,120.17501831,26.80580902,120.06069946,26.72300339,119.80437469,26.70977211,119.63256836,26.60780334,119.75855255,26.28418541,119.63969421,26.0553112,119.67401123,25.78865433,119.63227081,25.66789818,119.53904724,25.54703903,119.2995224,25.45762253,119.22733307,25.33045769,119.14901733,25.15246773,119.01660919,24.86638641,118.73487091,24.70700836,118.54929352,24.48431015,118.32790375,24.54736328,118.12857056,24.57869911,118.06492615,24.5277462,117.99975586,24.43868637,118.05275726,24.06406784,117.95690918,24.00035667,117.60955811,23.70744514,117.44906616,23.64994431,117.16637421,23.57312775,116.91279602,23.36299515,116.65572357,23.26717377,116.6075592,23.216259,116.60388184,23.00029373,116.54428101,22.93030357,116.2883606,22.90435028,116.06371307,22.8530674,115.91036987,22.65584564,115.74617767,22.71265602,115.5124588,22.78837967,115.38919067,22.76272392,115.24720001,22.61633682,115.05147552,22.52698708,114.76241302,22.48192024,114.74112701,22.69147491,114.50753784,22.66557312,114.19280243,22.56963921,114.04882813,22.48041153,113.9204483,22.49918747,113.73964691,22.72111893,113.66623688,22.79082489,113.58028412,22.66361809,113.62295532,22.58748055,113.60275269,22.49216461,113.58136749,22.18087959,113.48734283,22.04730225,113.30038452,21.99609375,113.07497406,22.07818794,113.01922607,21.95103264,113.01899719,21.84304619,112.95318604,21.77304077,112.67617798,21.74704933,112.51152802,21.6958847,112.24318695,21.6762619,112.03486633,21.77109337,111.93766022,21.72642708,111.73974609,21.5100441,111.63788605,21.47807121,111.28926086,21.49637413,110.95326233,21.39403534,110.77008057,21.24754906,110.56710815,21.25982475,110.44248962,21.29766846,110.43748474,21.27225685,110.40623474,21.1133976,110.27609253,20.93526077,110.28088379,20.88445473,110.4968338,20.59908295,110.61778259,20.54216766,110.63732147,20.45326996,110.4749527,20.33223724,110.13191986,20.26164436,109.91526031,20.58513451,109.80659485,20.8961525,109.81181335,21.07401848,109.99042511,21.42375565,109.98348236,21.49995613,109.71974182,21.61374474,109.61798096,21.58176613,109.52554321,21.44817352,109.32106781,21.41598129,109.01670074,21.5106144,108.75865936,21.84036827,108.67031097,21.80207634,108.66259003,21.72583199,108.59093475,21.54782486,108.46960449,21.4903965,108.32036591,21.51548386,108.1036911,21.4959774,108.07927704,21.47904015,107.99028778,21.54328156,107.58119202,21.59169579,107.3017807,21.66625977,106.87710571,21.94314194,106.75421906,22.10750961,106.71105957,22.3421669,106.92350006,22.67990112,106.89819336,22.85116959,106.79169464,22.94578362,106.44180298,22.92470741,106.14480591,22.9483757,105.79763794,23.05429077,105.51709747,23.31297684,105.38309479,23.2677536,105.14821625,23.12036324,104.8351059,22.87093544,104.68177795,22.80020332,104.31866455,22.7473011,103.60093689,22.72408295,103.45144653,22.67241287,103.1887207,22.486763,103.04251099,22.53035545,102.77402496,22.70657349,102.62065125,22.71203041,102.38911438,22.65354729,102.17151642,22.55068779";
var x, y;
var pt = null;
var ring = null;
var polygon = null;
var points = [];
var xy = str.split(",");
for(var i=0, len=xy.length; i<len; i++,i++){
x = parseFloat(xy[i]);
y = parseFloat(xy[i+1]);
pt = new GeoBeans.Geometry.Point(x, y);
points.push(pt);
}
ring = new GeoBeans.Geometry.LinearRing(points);
polygon = new GeoBeans.Geometry.Polygon([ring]);
return polygon
}
</script>
<title>Map5</title>
</head>
<body onload="init()">
<canvas id="myCanvas" width="800" height="800"></canvas>
<!--<img src="map.jpg"/>-->
</body>
</html>