This repository has been archived by the owner on Jul 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
wkt-directive.html
101 lines (89 loc) · 35.2 KB
/
wkt-directive.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
<!DOCTYPE HTML>
<html>
<head>
<script charset="UTF-8" type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.12/angular.min.js"></script>
<script src="../dist/angular-bing-maps.js"></script>
<script src="../BingMapModules/WKTReader/WKTModule.js"></script>
<script type="text/javascript">
var app = angular.module('angularBingMapExample', ['angularBingMaps']);
app.controller('ExampleController', function($scope, $http) {
/*<bing-map> directive options*/
$scope.mapOptions = {};
$scope.mapOptions.center = {latitude: 30.614919,longitude: -96.342316};
$scope.mapOptions.zoom = 6;
$scope.mapOptions.mapType = 'a';
$scope.wkt = {};
$scope.wkt.shapes = [];
$scope.wkt.shapes.push({
name: 'Brazos County',
id: 1,
fillColor: 'rgba(255, 63, 63, 0.7)',
strokeColor: '#FFF',
geom: 'POLYGON ((-96.423429 30.559088, -96.421465 30.550566999999997, -96.419186 30.545811999999998, -96.415824 30.54141, -96.412342 30.539344, -96.406584999999993 30.540452, -96.404662 30.540087999999997, -96.40105299999999 30.536016999999998, -96.397116 30.534487, -96.38833 30.532459, -96.383772999999991 30.533434999999997, -96.382877 30.535408999999998, -96.383141999999992 30.537456, -96.386302 30.53943, -96.386979 30.540789999999998, -96.386856 30.542688, -96.38521999999999 30.544123, -96.38069 30.543376, -96.37894399999999 30.537194, -96.377393 30.535982999999998, -96.375581 30.536078, -96.374276999999992 30.538724, -96.374861 30.541217999999997, -96.377219 30.544894, -96.377086999999989 30.546183, -96.376056999999989 30.546920999999998, -96.373376 30.546616, -96.367752 30.543387, -96.35941 30.542603999999997, -96.354967 30.528879999999997, -96.35458899999999 30.525021, -96.355307 30.521998, -96.356930999999989 30.519779999999997, -96.360686 30.518200999999998, -96.369030999999993 30.517881, -96.370432999999991 30.516727999999997, -96.371327 30.514101999999998, -96.368877 30.511367999999997, -96.365040999999991 30.510282, -96.363047999999992 30.510676, -96.358712 30.513596, -96.355859999999993 30.513783, -96.354766 30.512017999999998, -96.355628 30.50641, -96.35365 30.502682999999998, -96.35196599999999 30.501264, -96.344894 30.499795, -96.341809 30.497244, -96.329883 30.477352, -96.330415 30.475582, -96.332247 30.474323, -96.334611 30.474068, -96.340488 30.475199, -96.34073699999999 30.473898, -96.339604999999992 30.472108, -96.330828 30.463790999999997, -96.322475 30.458755, -96.32149 30.456253999999998, -96.321884 30.451812999999998, -96.320939 30.449567, -96.317135999999991 30.450146, -96.312131999999991 30.455233, -96.310458 30.455572999999998, -96.307797999999991 30.454365, -96.303542999999991 30.449023, -96.301772 30.447851, -96.292864999999992 30.444276, -96.290894999999992 30.443998999999998, -96.286048 30.448206, -96.284577 30.447951, -96.284337 30.446296, -96.286512 30.441249, -96.286772 30.435719, -96.28644899999999 30.433756, -96.282564 30.426613999999997, -96.287988 30.421287, -96.285907 30.416922, -96.281109 30.414831, -96.277283 30.41554, -96.273547 30.418325, -96.272511999999992 30.417800999999997, -96.271816 30.416387999999998, -96.272898 30.413887, -96.272323 30.410201999999998, -96.274318 30.408063, -96.278151999999992 30.407056999999998, -96.287948 30.412156999999997, -96.295200999999992 30.412367, -96.29749 30.411787, -96.29886599999999 30.410501999999997, -96.300253 30.407269, -96.297598999999991 30.400420999999998, -96.302498 30.399403, -96.305193 30.397216, -96.306930999999992 30.394586, -96.305816 30.390898999999997, -96.294939 30.385623, -96.293368 30.382537, -96.294068 30.380235, -96.295608 30.379213, -96.299173 30.379151999999998, -96.299765999999991 30.377981, -96.298761 30.377056, -96.294395 30.376178999999997, -96.29057499999999 30.373393999999998, -96.28676 30.365354999999997, -96.284645 30.364358, -96.279437 30.364468, -96.27567599999999 30.359669, -96.272455 30.358468, -96.269731999999991 30.358458, -96.267738999999992 30.359247, -96.262442 30.363811, -96.263539999999992 30.368191999999997, -96.262914999999992 30.370020999999998, -96.260257 30.369401, -96.258944 30.36735, -96.257222 30.366403, -96.25175 30.365384, -96.243204999999989 30.369719, -96.238689999999991 30.369006, -96.235086 30.369719999999997, -96.220896 30.376383999999998, -96.216156 30.376488, -96.212171 30.373679, -96.209763 30.374036, -96.209217 30.375842, -96.206507 30.379, -96.201239 30.381145, -96.199543999999989 30.38291, -96.198228 30.395118, -96.196516 30.398729, -96.1945 30.39989, -96.190775 30.398705999999997, -96.183814 30.394281, -96.180522 30.395099, -96.178660999999991 30.394717999999997, -96.174461 30.390877999999997, -96.173467 30.389221, -96.17327 30.38645, -96.17645499999999 30.378345, -96.176567999999989 30.376102999999997, -96.175545 30.375011999999998, -96.173037999999991 30.373911, -96.170605999999992 30.373976, -96.167218999999989 30.375245999999997, -96.16299 30.378092, -96.159140999999991 30.378643, -96.15587 30.374429, -96.150762 30.370673999999998, -96.149872 30.368789999999997, -96.1504 30.366694, -96.155537 30.362665, -96.152711 30.355027, -96.15263 30.350310999999998, -96.159371999999991 30.342806999999997, -96.160474 30.340121, -96.160203 30.338486999999997, -96.15463 30.330288, -96.154438 30.333233999999997, -96.153627 30.334276, -96.145703 30.336206999999998, -96.140062 30.339838999999998, -96.139811999999992 30.340934999999998, -96.140997 30.342765999999997, -96.145873999999992 30.343225, -96.148465 30.345000000000002, -96.149693 30.349891999999997, -96.149069 30.353116, -96.143597 30.352102, -96.142423 30.352905, -96.141639 30.355355999999997, -96.142623 30.35806, -96.141609 30.365509999999997, -96.14215 30.367815, -96.144657 30.369365, -96.1455 30.370873999999997, -96.144134 30.37698, -96.147066999999993 30.380284, -96.147255 30.382839999999998, -96.145251 30.384822, -96.138971 30.383138, -96.136528 30.383620999999998, -96.134193 30.384583, -96.132246999999992 30.387901999999997, -96.129409999999993 30.388323999999997, -96.126015999999993 30.387774999999998, -96.122444 30.384078, -96.121478 30.383999, -96.119669 30.387469, -96.121515 30.390278, -96.121524 30.391890999999998, -96.11931899999999 30.392114999999997, -96.117595 30.391278, -96.116756 30.392229, -96.118262 30.39932, -96.117367 30.399790999999997, -96.116317 30.399331999999998, -96.114046 30.396912, -96.113772 30.394337, -96.112343 30.394433, -96.11117999999999 30.396819999999998, -96.113549999999989 30.401183, -96.107914 30.406986999999997, -96.10862 30.407622, -96.110959999999992 30.407052999999998, -96.111879 30.407835, -96.113689999999991 30.412727, -96.112194 30.415668, -96.107148 30.417752, -96.106321999999992 30.418943, -96.106341 30.421933, -96.105601 30.422124999999998, -96.103517 30.421211, -96.103456 30.418892, -96.101321 30.417389999999997, -96.09746 30.420026999999997, -96.095537 30.419696, -96.095818 30.417429, -96.094498 30.416650999999998, -96.091697 30.416470999999998, -96.087926 30.417292999999997, -96.082934 30.422949, -96.083346999999989 30.424985, -96.082523999999992 30.428255, -96.080216 30.429422, -96.08000899999999 30.430435, -96.080975 30.431289999999997, -96.086790999999991 30.42989, -96.087431 30.430756, -96.085882 30.433864999999997, -96.086 30.435558999999998, -96.09058499999999 30.438024, -96.092821 30.440101, -96.094352 30.438886999999998, -96.09558 30.438845999999998, -96.09689 30.437409, -96.09905599999999 30.440057999999997, -96.100629 30.440693, -96.103808 30.437507, -96.105195999999992 30.437023, -96.106526 30.440015, -96.104766 30.440835, -96.104598 30.443787, -96.10534 30.444408, -96.111013 30.443154999999997, -96.113073 30.440607, -96.114222 30.441274999999997, -96.115909 30.440427, -96.11898699999999 30.441512, -96.119354 30.442695999999998, -96.120201999999992 30.441805, -96.121975999999989 30.443579, -96.121800000000007 30.444834, -96.123164 30.446118, -96.123015999999993 30.447038, -96.126509 30.449507999999998, -96.12539799999999 30.451479, -96.12371 30.451798999999998, -96.123072999999991 30.455139, -96.124355999999992 30.455586, -96.124794999999992 30.453968999999997, -96.130017999999993 30.452555, -96.129403 30.455313999999998, -96.126139999999992 30.457276, -96.129708999999991 30.460115, -96.128807999999992 30.461744999999997, -96.130282999999991 30.463870999999997, -96.129483 30.466248, -96.133409 30.467530999999997, -96.135187 30.466148999999998, -96.136151 30.466286, -96.135892 30.469241, -96.139749999999992 30.471545, -96.138803 30.474204, -96.141089 30.4753, -96.139499 30.476014, -96.139328999999989 30.479179, -96.137723999999992 30.47916, -96.137645999999989 30.477031999999998, -96.136253 30.476740999999997, -96.136996 30.478835999999998, -96.135280999999992 30.479857, -96.13700399999999 30.481358999999998, -96.135604 30.483317, -96.133113 30.483867999999998, -96.132504 30.491905, -96.133231999999992 30.492395, -96.134647 30.491839, -96.135082 30.493419, -96.136585 30.493206999999998, -96.136032 30.494975, -96.137954999999991 30.49572, -96.136603999999991 30.499378, -96.137819 30.501184, -96.139522 30.500155999999997, -96.140284999999992 30.500791999999997, -96.141995999999992 30.500318999999998, -96.142913 30.502442, -96.144663 30.503107999999997, -96.144151999999991 30.504452999999998, -96.142248 30.503928, -96.142561 30.505979999999997, -96.141061 30.506389, -96.140079 30.508996999999997, -96.141584 30.509175, -96.143473 30.511118, -96.144798 30.510675, -96.143605999999991 30.513469999999998, -96.145955 30.514695999999997, -96.146300000000011 30.515634, -96.147294 30.515497999999997, -96.150154 30.518337, -96.149195999999989 30.520584999999997, -96.150010999999992 30.520847999999997, -96.151493 30.519904, -96.152643 30.520854999999997, -96.151592 30.523742, -96.148946999999993 30.524008, -96.150381 30.525168999999998, -96.148421 30.528715, -96.151591 30.530177, -96.152468 30.532082, -96.154291 30.53191, -96.155479 30.53014, -96.157004 30.530285, -96.155845 30.533205, -96.158149 30.535149999999998, -96.159713 30.533559, -96.161231 30.533918999999997, -96.160297 30.540332, -96.161536 30.541833999999998, -96.161049999999989 30.543671999999997, -96.161756 30.544669, -96.160962 30.545498, -96.161885 30.547093, -96.160843 30.548026999999998, -96.159634 30.552066, -96.160519999999991 30.556307, -96.158604 30.558639999999997, -96.160285 30.559776, -96.161433 30.562419, -96.161586 30.565443, -96.161301999999992 30.56645, -96.159764 30.567301999999998, -96.162517999999992 30.568610999999997, -96.16205 30.570645, -96.164107 30.570991, -96.165311 30.570466999999997, -96.167842999999991 30.571697999999998, -96.167763 30.572338, -96.165517 30.573266, -96.166404 30.574609, -96.167431999999991 30.574446, -96.167806 30.575554, -96.172125 30.578231, -96.172097 30.5805, -96.173823 30.580492999999997, -96.175688999999991 30.581529999999997, -96.175375 30.583596, -96.177770999999993 30.585282, -96.182599 30.586349, -96.18462 30.587947999999997, -96.183466 30.589005, -96.182475 30.595072, -96.184658 30.596695999999998, -96.185249 30.598845999999998, -96.187765 30.598737, -96.188305 30.599335, -96.187359 30.601378999999998, -96.188155 30.602684, -96.186111 30.603392999999997, -96.186668 30.606022999999997, -96.182448 30.606797999999998, -96.181497 30.608126, -96.181232 30.611280999999998, -96.182717 30.612520999999997, -96.181649 30.613245, -96.181168 30.615412, -96.182165 30.615769999999998, -96.182542 30.616937999999998, -96.182313 30.617635, -96.180587 30.617995999999998, -96.179807 30.617386, -96.17909499999999 30.618160999999997, -96.180404 30.618471, -96.179769999999991 30.619076, -96.180368 30.621536, -96.17805899999999 30.621941999999997, -96.177194 30.623337, -96.173597 30.622704, -96.174283 30.625916, -96.17322399999999 30.628830999999998, -96.17213799999999 30.629656999999998, -96.170623999999989 30.629365, -96.169117 30.630136999999998, -96.170463 30.630812, -96.169933 30.632462, -96.171663999999993 30.634162999999997, -96.17074199999999 30.635844, -96.172046 30.635126999999997, -96.172992 30.635747, -96.172053999999989 30.638129, -96.168404 30.638696999999997, -96.169637999999992 30.639733999999997, -96.167799 30.643162999999998, -96.167053 30.643832999999997, -96.165556 30.643085, -96.166331 30.644489, -96.165758 30.647063, -96.16736499999999 30.647218, -96.167363 30.649568, -96.169508 30.650318, -96.16901 30.651353, -96.167784 30.651318, -96.167172999999991 30.654989999999998, -96.165944 30.654374999999998, -96.16540599999999 30.657601, -96.163978 30.658997, -96.165459 30.660688999999998, -96.164355 30.661489, -96.16490499999999 30.662948, -96.16711699999999 30.662702999999997, -96.169297 30.663656, -96.16749 30.66527, -96.16877199999999 30.666355999999997, -96.168083 30.669144, -96.169062 30.669912, -96.168438999999992 30.67112, -96.169141 30.672707, -96.171365999999992 30.672127, -96.170142 30.673679999999997, -96.171712 30.675839999999997, -96.172736 30.679842999999998, -96.170622999999992 30.680211, -96.16999899999999 30.681358, -96.17148499999999 30.682108999999997, -96.170491 30.685336999999997, -96.170822 30.687189999999998, -96.169786 30.688212, -96.170935 30.688419, -96.170383 30.689543999999998, -96.173034 30.691924, -96.172156 30.693617999999997, -96.174101999999991 30.693977999999998, -96.175378 30.696054999999998, -96.176896 30.696838, -96.176295 30.697933, -96.175373 30.697767, -96.175647 30.698707, -96.174883999999992 30.699077, -96.176628999999991 30.700362, -96.176588999999993 30.701953, -96.175113 30.702033, -96.175644999999989 30.70358, -96.176968 30.703080999999997, -96.177537 30.703937999999997, -96.177140999999992 30.705140999999998, -96.177824 30.706141, -96.176293 30.706442, -96.177945999999991 30.709512999999998, -96.177223 30.709971, -96.175226999999992 30.709190999999997, -96.174141999999989 30.709528, -96.175142 30.711154999999998, -96.174624999999992 30.711844, -96.173099 30.711496999999998, -96.172061 30.712256, -96.172079 30.715165, -96.170735999999991 30.716151, -96.171258999999992 30.717367, -96.170296 30.71801, -96.168749999999989 30.717173, -96.169186 30.718483, -96.168138 30.720415, -96.164549 30.721978, -96.164695999999992 30.72383, -96.163327 30.724739, -96.162064 30.727836, -96.162499 30.731676999999998, -96.161426999999989 30.732564, -96.162172 30.734291, -96.160224 30.735165, -96.162072 30.73583, -96.16149 30.737216, -96.162628 30.737496, -96.162587 30.739797, -96.165044 30.740714999999998, -96.165658999999991 30.742476, -96.166775 30.743135, -96.16506 30.744422, -96.168501999999989 30.746831999999998, -96.17057 30.750646, -96.17047199999999 30.752868, -96.168717 30.753086, -96.168088 30.754347, -96.169843 30.755141, -96.168167 30.757012, -96.169578 30.756663, -96.169455 30.757993, -96.16655999999999 30.758653, -96.166519999999991 30.760319, -96.164965 30.759911, -96.16444 30.762218999999998, -96.162838999999991 30.763039, -96.16314 30.764135999999997, -96.16489 30.764667, -96.163018 30.768380999999998, -96.163794 30.769228, -96.162644 30.769509, -96.165103 30.77431, -96.166659 30.774171, -96.165248999999989 30.772779, -96.165787 30.772115, -96.16815299999999 30.773659, -96.168061999999992 30.775026999999998, -96.166361999999992 30.775221, -96.166012999999992 30.776303, -96.168206 30.777900000000002, -96.169249 30.780202, -96.170542 30.779507, -96.170947 30.780085999999997, -96.171036 30.783158, -96.172186 30.784062, -96.17174 30.784983999999998, -96.172366 30.785328999999997, -96.17322399999999 30.784125999999997, -96.175655999999989 30.785359, -96.175461 30.786185, -96.177008 30.786490999999998, -96.17938 30.789198, -96.180178 30.791784999999997, -96.182924 30.792254999999997, -96.181698 30.793398, -96.183032 30.793933, -96.183641 30.795136, -96.18289 30.796121999999997, -96.183219999999992 30.797739, -96.179470999999992 30.797756, -96.17934 30.799882, -96.17815 30.801091999999997, -96.177174 30.799367999999998, -96.176263999999989 30.799269, -96.176307999999992 30.801242, -96.173915 30.801083, -96.17354499999999 30.802664999999998, -96.172463 30.803027999999998, -96.172488 30.803962, -96.173698 30.803978999999998, -96.173659 30.805083999999997, -96.170908 30.806742999999997, -96.172831 30.807342, -96.172398 30.808584, -96.175575 30.809541, -96.175536 30.810924999999997, -96.173929 30.811314999999997, -96.174286 30.812894999999997, -96.172737 30.814211, -96.172747 30.815436, -96.173912 30.815171999999997, -96.174055 30.81592, -96.17017 30.819359, -96.168301 30.823348, -96.170358 30.823874999999997, -96.16993 30.824991999999998, -96.171146999999991 30.825267999999998, -96.170109 30.826331999999997, -96.171165 30.828091999999998, -96.172406999999993 30.828055, -96.173914 30.826611, -96.174639 30.827168, -96.17123 30.829414999999997, -96.172883 30.830126999999997, -96.174627 30.829838, -96.175361999999993 30.831343999999998, -96.173232 30.831066999999997, -96.17545299999999 30.834894, -96.17598 30.836644999999997, -96.175451 30.839482, -96.176186 30.840795, -96.174897 30.841769, -96.174959 30.843424, -96.173356 30.844492, -96.17504 30.846055999999997, -96.172344999999993 30.846487, -96.173172 30.847001, -96.172975 30.848136, -96.175116 30.848145, -96.176425 30.849238999999997, -96.175662 30.851591, -96.173957 30.852138, -96.17411899999999 30.85307, -96.177275 30.853825999999998, -96.17671 30.855089999999997, -96.177937 30.856617, -96.176653 30.856590999999998, -96.176904 30.858100999999998, -96.184177999999989 30.861537, -96.182723 30.863334, -96.18556199999999 30.863671999999998, -96.184567 30.865015999999997, -96.18615 30.865786, -96.185932999999991 30.867326, -96.186711 30.867552999999997, -96.18914 30.866163999999998, -96.190607 30.867445, -96.18967099999999 30.869345, -96.192003 30.867963, -96.193030999999991 30.871026999999998, -96.194627 30.870008, -96.195713 30.871005, -96.196581999999992 30.875712, -96.196134 30.876599, -96.193484 30.877845999999998, -96.192996 30.881234, -96.193632999999991 30.882402, -96.195762 30.883364999999998, -96.196146 30.885223, -96.198387 30.886591, -96.200195999999991 30.885489999999997, -96.200887999999992 30.887086999999998, -96.200302999999991 30.88845, -96.197791999999993 30.888541999999998, -96.200434 30.889352, -96.199317999999991 30.891012, -96.201411 30.890919999999998, -96.200846 30.892636, -96.202443 30.892179, -96.204191999999992 30.896290999999998, -96.20285299999999 30.897233999999997, -96.204309999999992 30.897910999999997, -96.203229 30.899448, -96.203437 30.901229999999998, -96.206547 30.900661, -96.206679 30.902279999999998, -96.209007 30.902604, -96.210512 30.904322999999998, -96.212693 30.905086999999998, -96.211767 30.907383, -96.212396 30.909342, -96.211919999999992 30.91037, -96.213246 30.911635999999998, -96.210471 30.914479, -96.210115 30.917019, -96.20807099999999 30.917133999999997, -96.206454 30.918771999999997, -96.208560999999989 30.920651999999997, -96.206131 30.921225999999997, -96.206949 30.922652999999997, -96.206616 30.923952, -96.204827999999992 30.923671, -96.204668 30.9251, -96.203852 30.924419, -96.20146299999999 30.925746, -96.204537 30.928231, -96.203515 30.928735999999997, -96.203047 30.932907, -96.200068 30.930723999999998, -96.198228 30.932116999999998, -96.200626 30.933618, -96.202125 30.938411, -96.205485 30.940227999999998, -96.2073 30.944385999999998, -96.206587 30.945458, -96.207809 30.947419, -96.20973699999999 30.947081999999998, -96.212369999999993 30.949237999999998, -96.218614 30.950653, -96.219555 30.951957, -96.22725299999999 30.951691999999998, -96.232086999999993 30.95515, -96.23435099999999 30.959121, -96.237792 30.960642, -96.237658 30.962982, -96.240301 30.964903999999997, -96.238168 30.967613999999998, -96.237698 30.969739999999998, -96.239492 30.971083999999998, -96.241019999999992 30.973737, -96.248972999999992 30.970914999999998, -96.26223499999999 30.964668, -96.281473999999989 30.952647, -96.304632 30.940979, -96.336193 30.9217, -96.349482999999992 30.911306, -96.352784 30.906440999999997, -96.362225999999993 30.896286, -96.364324 30.886802, -96.365642 30.884546999999998, -96.382463 30.870527, -96.387408 30.864012, -96.391042 30.854537999999998, -96.398471 30.840540999999998, -96.404063 30.83438, -96.410142999999991 30.825844, -96.419113 30.805515999999997, -96.422893 30.793509, -96.438783 30.774034999999998, -96.444743 30.763827, -96.452840999999992 30.753113, -96.45763 30.744474, -96.566983 30.69567, -96.568204999999992 30.691315, -96.572064 30.688848999999998, -96.575245 30.688254999999998, -96.578993 30.689573, -96.581088 30.689265, -96.583304 30.685774, -96.584308 30.68111, -96.582804 30.663791999999997, -96.583688 30.660469, -96.587324 30.655884, -96.590999 30.653591, -96.594308 30.652589, -96.595779 30.647627, -96.601445 30.642559, -96.601507 30.640138, -96.598908999999992 30.639255, -96.59035999999999 30.639910999999998, -96.583675 30.637345999999997, -96.570253 30.636682999999998, -96.568744 30.635579999999997, -96.566632 30.629386999999998, -96.56 30.631902999999998, -96.555993 30.632367, -96.550598999999991 30.630802, -96.548214 30.627882999999997, -96.547088 30.627739, -96.533322 30.628317, -96.517518 30.626220999999997, -96.510494 30.627827999999997, -96.508462999999992 30.625860999999997, -96.507450999999989 30.623005, -96.508245 30.620579, -96.50769 30.616325999999997, -96.503769999999989 30.613804, -96.499935 30.612828999999998, -96.497911 30.613317, -96.494085 30.616135, -96.491807999999992 30.621472999999998, -96.489228 30.621771, -96.487292 30.620366999999998, -96.486323 30.617435999999998, -96.489505 30.607664, -96.48790000000001 30.605103, -96.48505 30.603844, -96.478958999999989 30.604477, -96.472471 30.606997999999997, -96.470169 30.607121, -96.465723 30.603638999999998, -96.463945999999993 30.599829999999997, -96.461705999999992 30.598297, -96.451499 30.596764999999998, -96.449751999999989 30.594853999999998, -96.45015 30.589623999999997, -96.442359 30.582794999999997, -96.439903 30.579369, -96.438288 30.575079, -96.436154 30.573455, -96.43086 30.572816999999997, -96.42732199999999 30.575294, -96.426819999999992 30.579181, -96.430691 30.585921, -96.431512 30.589169, -96.430751 30.590563999999997, -96.42927499999999 30.591244, -96.427657 30.591306999999997, -96.425527 30.590272, -96.419758 30.583336, -96.420498 30.581298999999998, -96.424148 30.5778, -96.42219399999999 30.571087, -96.423429 30.559088))'
});
$scope.wkt.shapes.push({
name: 'Burlison City Census Place',
id: 2,
geom: 'GEOMETRYCOLLECTION (LINESTRING (-97.274690000000135 32.469068999999749, -97.278594999999839 32.470065999999925), POLYGON ((-97.283153999999939 32.48329599999996, -97.282438000000369 32.483497000000334, -97.283164999999983 32.483812000000015, -97.283153999999939 32.48329599999996)), POLYGON ((-97.428686999999869 32.496849000000338, -97.42474700000021 32.493554000000032, -97.424853000000368 32.461074999999859, -97.4162670000002 32.4609449999997, -97.416197999999667 32.468624000000155, -97.411554999999836 32.468447999999881, -97.411666000000039 32.471451000000023, -97.412645000000168 32.471453000000324, -97.412843000000308 32.472528000000217, -97.415976999999614 32.472642000000093, -97.4160359999998 32.4776909999999, -97.416988999999589 32.477692000000069, -97.416976000000432 32.480341999999879, -97.4131129999998 32.480332999999959, -97.4130649999997 32.481272000000189, -97.41380599999971 32.481251000000114, -97.413779000000019 32.482764999999972, -97.416230999999883 32.482774999999847, -97.416253000000253 32.48443200000019, -97.407569000000251 32.484958999999627, -97.405160000000038 32.486494999999991, -97.398006999999922 32.487447000000024, -97.396442999999664 32.488674999999994, -97.395847000000188 32.491481000000135, -97.3937549999999 32.493308000000027, -97.387607999999787 32.488012000000268, -97.383011999999653 32.491796000000058, -97.379667000000168 32.489214000000054, -97.376559000000043 32.486551999999847, -97.379181000000315 32.481309000000067, -97.377931000000117 32.480577999999952, -97.37553899999989 32.485829999999837, -97.3712910000001 32.489735999999937, -97.369166999999962 32.488559999999914, -97.367270999999775 32.488065000000184, -97.366905000000074 32.488764000000074, -97.364049000000335 32.4875859999999, -97.367493000000479 32.483046000000122, -97.364664999999533 32.481202999999844, -97.36594199999999 32.48009100000025, -97.363762000000008 32.478151000000182, -97.363989999999916 32.476471000000046, -97.360361999999839 32.473283999999929, -97.36073200000024 32.460888999999909, -97.360193000000024 32.458728999999892, -97.358569999999958 32.458640999999936, -97.358701999999965 32.4718619999998, -97.352002000000013 32.465915999999687, -97.350837000000084 32.4668719999998, -97.36288399999998 32.477389000000052, -97.352422000000175 32.4859799999997, -97.3534059999996 32.486802000000083, -97.352412999999842 32.487666999999959, -97.356680999999639 32.491692000000029, -97.35689100000036 32.493437000000256, -97.353520000000287 32.490634000000021, -97.352990999999889 32.490949000000228, -97.34717799999973 32.495707999999865, -97.351404999999787 32.499222000000266, -97.344889000000364 32.504132000000112, -97.34553399999966 32.505130999999771, -97.340997999999843 32.505170000000085, -97.3409869999995 32.507299999999987, -97.345871999999957 32.507266000000087, -97.345868000000323 32.510361000000039, -97.330179999999913 32.510785999999904, -97.330248000000282 32.507231999999988, -97.32698700000013 32.507184999999957, -97.326957999999948 32.510757999999882, -97.3170279999999 32.5108069999998, -97.317310999999961 32.517546000000131, -97.309426000000045 32.517575000000342, -97.309406999999766 32.513312999999947, -97.303575000000009 32.513253000000013, -97.302056999999891 32.510862999999787, -97.303561000000414 32.510593999999976, -97.296514000000116 32.502706999999774, -97.297671999999977 32.50189000000011, -97.295586999999884 32.501861999999917, -97.295595999999847 32.495959999999975, -97.293327000000176 32.495941999999808, -97.2932790000002 32.496999000000166, -97.289883999999844 32.496974000000144, -97.289971 32.497558999999725, -97.2888999999997 32.496419999999809, -97.2894859999998 32.496351000000281, -97.288305999999778 32.495076000000026, -97.290135000000276 32.493249000000041, -97.288847000000146 32.493116000000008, -97.288859000000244 32.490151000000239, -97.290349999999762 32.489775999999878, -97.286090000000186 32.489328000000114, -97.285936999999961 32.484314999999981, -97.291334999999833 32.48429800000018, -97.293007999999887 32.48303300000039, -97.291086000000462 32.480403000000244, -97.2871530000003 32.478264999999688, -97.287248999999832 32.474899000000008, -97.28394999999999 32.476430999999742, -97.283616999999765 32.472370000000147, -97.2825689999997 32.471934000000104, -97.275844000000035 32.4718770000001, -97.275556000000023 32.471399999999818, -97.274158000000227 32.472663, -97.271966000000361 32.4694999999998, -97.276094000000072 32.4675249999997, -97.274833999999714 32.4661599999999, -97.276237999999992 32.465524000000045, -97.273166999999859 32.461407000000094, -97.2726739999998 32.457939000000032, -97.271035000000211 32.456008000000018, -97.264986000000022 32.458903999999862, -97.2601650000004 32.450847999999937, -97.263260000000017 32.449160000000212, -97.256865000000246 32.439294999999696, -97.248898 32.443142000000243, -97.252456000000123 32.448538999999727, -97.2544719999999 32.447629999999869, -97.255616999999859 32.4493720000003, -97.2535940000003 32.450310000000087, -97.256561000000119 32.454841999999623, -97.255890999999622 32.455394000000148, -97.260461000000433 32.464696999999845, -97.25687700000033 32.465113999999936, -97.259804000000372 32.469592999999975, -97.26539399999993 32.467111000000138, -97.266101999999663 32.468189000000123, -97.266700999999827 32.467941999999923, -97.267749999999651 32.469520999999823, -97.26712400000028 32.469807999999915, -97.2771650000001 32.485179000000052, -97.276258000000041 32.484274000000141, -97.275420000000338 32.484665000000106, -97.277195999999975 32.487219000000209, -97.278000999999733 32.486949999999588, -97.28041700000027 32.491278000000264, -97.281606000000366 32.490217999999778, -97.284757000000468 32.494108999999995, -97.28329100000019 32.494090999999806, -97.283285999999777 32.494671000000011, -97.285848000000044 32.497590999999716, -97.2864669999997 32.501726000000183, -97.291867000000167 32.501738999999979, -97.293926000000056 32.503986000000062, -97.293841999999842 32.508550000000056, -97.297229000000314 32.50857900000004, -97.2971889999999 32.511778000000085, -97.29890199999997 32.511777999999858, -97.301059000000151 32.5150390000002, -97.301048999999722 32.519244000000008, -97.293942999999615 32.518653000000157, -97.2932 32.520312000000011, -97.2932230000002 32.518204000000054, -97.291951000000253 32.51821, -97.291440000000037 32.520301999999916, -97.282352000000046 32.520263000000185, -97.282773000000461 32.518432000000047, -97.282251000000315 32.516520999999656, -97.281441999999942 32.516506000000113, -97.281593000000413 32.512249000000075, -97.276217999999844 32.512334999999922, -97.276345999999862 32.51541599999991, -97.278265999999959 32.515388999999786, -97.278146999999834 32.516510000000196, -97.282121000000174 32.516655999999706, -97.282159999999735 32.521748000000358, -97.283226999999641 32.522774000000183, -97.283206000000234 32.523992000000064, -97.285050000000012 32.52400199999979, -97.285055000000241 32.525873000000189, -97.280395999999726 32.5310029999999, -97.276468999999665 32.528405999999883, -97.276343000000068 32.521219000000123, -97.272589000000281 32.522465999999859, -97.268656000000348 32.525296000000168, -97.26522100000021 32.530141999999877, -97.2643749999999 32.536432999999974, -97.276263000000171 32.5363489999998, -97.27692699999956 32.534897000000072, -97.28148899999978 32.53489300000016, -97.281608999999946 32.54206599999975, -97.279782000000452 32.542051999999813, -97.279751000000189 32.545786999999933, -97.2783199999997 32.54577600000016, -97.278262000000169 32.552187000000075, -97.304356000000226 32.552507999999982, -97.306355000000238 32.55138500000016, -97.3064289999999 32.550601999999877, -97.3135709999999 32.550630999999967, -97.314097000000174 32.562903000000141, -97.317675999999665 32.56288499999981, -97.318315999999868 32.5692860000001, -97.323985000000192 32.569264999999845, -97.324350999999851 32.571917999999883, -97.334558999999871 32.571824999999855, -97.345371999999969 32.568998000000171, -97.35143199999969 32.563853000000137, -97.343923999999646 32.557454999999855, -97.350596 32.551817999999869, -97.352184999999537 32.553277000000207, -97.364587000000213 32.553361999999872, -97.3685490000001 32.534861999999976, -97.376282999999717 32.541689, -97.377544999999969 32.541045999999746, -97.379035000000229 32.542279999999963, -97.378018999999853 32.543139000000146, -97.3814640000001 32.5453340000003, -97.382420999999937 32.545527000000284, -97.390076999999621 32.539274000000255, -97.387560999999835 32.540712000000063, -97.377551999999739 32.532271000000293, -97.380351000000175 32.52994800000009, -97.37757700000023 32.5275740000002, -97.381135999999714 32.524609999999868, -97.375063999999924 32.519226999999916, -97.376023999999731 32.51849600000002, -97.376660000000115 32.519083000000073, -97.378260999999853 32.517792000000327, -97.373568006422587 32.513099006423474, -97.373767000000285 32.512408000000114, -97.387551 32.491661999999835, -97.391864000000083 32.495400000000231, -97.394836000000055 32.495943999999639, -97.398987999999761 32.493075999999931, -97.399544999999662 32.489881999999945, -97.407423000000335 32.489131000000285, -97.408001999999556 32.487710000000071, -97.415532000000155 32.4871490000002, -97.415509999999784 32.49167800000005, -97.4143939999999 32.491692000000242, -97.414352999999849 32.493742999999924, -97.421260999999859 32.499704999999864, -97.422586000000479 32.498605999999995, -97.425307999999973 32.500971000000149, -97.425829000000064 32.4992149999998, -97.428686999999869 32.496849000000338), (-97.364306999999869 32.499904999999693, -97.361905000000235 32.503158999999677, -97.3594179999999 32.500888000000181, -97.360029000000168 32.500383000000156, -97.359242999999736 32.499770000000083, -97.361661999999683 32.497643999999873, -97.364306999999869 32.499904999999693), (-97.293086000000173 32.534878000000219, -97.288600999999971 32.534913999999979, -97.288649000000092 32.5335070000001, -97.285286999999826 32.531106000000143, -97.288015000000058 32.529310999999936, -97.2895520000003 32.529120000000049, -97.290215000000288 32.530436999999843, -97.288537000000332 32.530784000000189, -97.290287999999919 32.53352800000004, -97.292456999999658 32.533692000000059, -97.293086000000173 32.534878000000219), (-97.29034500000003 32.480003999999809, -97.288785999999746 32.48039600000029, -97.2881869999999 32.481875000000329, -97.284499000000352 32.483485999999836, -97.2849579999998 32.484255999999988, -97.282746 32.484594000000065, -97.282196000000411 32.483305000000172, -97.284079999999847 32.482888999999922, -97.283486999999511 32.482041999999915, -97.28912500000024 32.479377999999912, -97.29034500000003 32.480003999999809)))'
});
$scope.wkt.shapes.push({
name: 'Heart of Texas',
id: 5,
geom: 'POINT(-96.291661, 30.590851)'
});
// $scope.wkt.shapes.push({
// name: 'Custom Line',
// id:3,
// geom: 'LINESTRING (-97.274690000000135 32.469068999999749, -97.278594999999839 32.470065999999925)'
// });
$scope.wkt.shapes.push({
name: 'Custom Polygon',
id: 4,
geom: 'POLYGON((-96.38306 30.60482,-96.30924 30.54748,-96.24779 30.58591,-96.24332 30.6577,-96.30341 30.66804,-96.31542 30.63466,-96.36074 30.64441,-96.38271 30.61753,-96.38271 30.60423))'
});
$scope.wkt.eventHandlers = {
'click': function(event) {
alert('You clicked a polygon with id: ' + event.target.trackBy);
console.log(event);
}
};
$scope.wkt.styles = {
pushpinOptions: {
icon: 'http://c.dryicons.com/images/icon_sets/minimalistica_red_icons/png/64x64/map_pin.png',
height: 100,
width: 100
},
polylineOptions: {
},
polygoneOptions: {
}
}
});
</script>
<style type="text/css">
bing-map {
height: 100%;
width: 100%;
}
</style>
</head>
<body ng-app="angularBingMapExample">
<div class="bing-map-container" ng-controller="ExampleController">
<bing-map
credentials="'AkaxzD5YOJCbIvziHVOLfm6AkeM5Z5UQ3dHS53mQzwK-6LGWnxYjAwNqfe3D4UBT'"
center="mapOptions.center"
zoom="mapOptions.zoom"
mapType="mapOptions.mapType">
<wkt
ng-repeat="shape in wkt.shapes"
text="shape.geom"
events="wkt.eventHandlers"
track-by="shape.id"
fill-color="shape.fillColor"
stroke-color="shape.strokeColor"
styles="wkt.styles"></wkt>
</bing-map>
</div>
</body>
</html>