@vidro/map-handler 1.1.4 → 1.1.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. package/README.md +39 -101
  2. package/dist/map-handler.js +1 -1
  3. package/examples/full/cachedToken.dat +1 -1
  4. package/examples/full/cachedTokenData.dat +1 -1
  5. package/examples/full/index.php +9 -78
  6. package/examples/full/tester.js +12 -177
  7. package/examples/serverLess/dist/index.23420cfa.js +117 -120
  8. package/examples/serverLess/dist/index.23420cfa.js.map +1 -1
  9. package/examples/serverLess/dist/index.html +1 -38
  10. package/examples/serverLess/index.html +1 -2
  11. package/examples/serverLess/main.js +2 -2
  12. package/examples/simple/index.html +1 -1
  13. package/examples/taigua/index.html +46 -8
  14. package/examples/taigua/main.js +467 -18
  15. package/examples/vidromap/index.php +1 -1
  16. package/package.json +1 -1
  17. package/src/index.js +180 -321
  18. package/examples/externalwms/index.js +0 -20
  19. package/examples/externalwms/index.php +0 -88
  20. package/examples/integration/tool/css/dist/home.css.min.css +0 -0
  21. package/examples/integration/tool/css/dist/home.min.css +0 -1
  22. package/examples/integration/tool/css/dist/home.min.css.map +0 -10
  23. package/examples/integration/tool/css/dist/style-login.css.min.css +0 -0
  24. package/examples/integration/tool/css/dist/style-login.min.css +0 -1
  25. package/examples/integration/tool/css/dist/style-login.min.css.map +0 -10
  26. package/examples/integration/tool/css/dist/style.css.min.css +0 -0
  27. package/examples/integration/tool/css/dist/style.min.css +0 -1
  28. package/examples/integration/tool/css/dist/style.min.css.map +0 -23
  29. package/examples/integration/tool/css/master/_bottom-sheet-2.scss +0 -103
  30. package/examples/integration/tool/css/master/_bottom-sheet.scss +0 -142
  31. package/examples/integration/tool/css/master/_colors.scss +0 -35
  32. package/examples/integration/tool/css/master/_dropdown-form.scss +0 -167
  33. package/examples/integration/tool/css/master/_forms.scss +0 -416
  34. package/examples/integration/tool/css/master/_header.scss +0 -134
  35. package/examples/integration/tool/css/master/_menu-toc.scss +0 -135
  36. package/examples/integration/tool/css/master/_menu-tools.scss +0 -187
  37. package/examples/integration/tool/css/master/_mixins.scss +0 -42
  38. package/examples/integration/tool/css/master/_notifyjs.scss +0 -39
  39. package/examples/integration/tool/css/master/_ol-map-controls.scss +0 -117
  40. package/examples/integration/tool/css/master/_simplelightbox.scss +0 -287
  41. package/examples/integration/tool/css/master/_toc-config.scss +0 -28
  42. package/examples/integration/tool/css/master/_toc-layouts.scss +0 -173
  43. package/examples/integration/tool/css/master/_tooltip.scss +0 -34
  44. package/examples/integration/tool/css/master/home.scss +0 -266
  45. package/examples/integration/tool/css/master/style-login.scss +0 -240
  46. package/examples/integration/tool/css/master/style.scss +0 -166
  47. package/examples/integration/tool/img/doc-gallery-placeholder.svg +0 -3
  48. package/examples/integration/tool/img/home/ic_calendar-clock.svg +0 -1
  49. package/examples/integration/tool/img/home/ic_caret-down.svg +0 -1
  50. package/examples/integration/tool/img/home/ic_cog.svg +0 -1
  51. package/examples/integration/tool/img/home/ic_marker.svg +0 -1
  52. package/examples/integration/tool/img/home/ic_play-circle.svg +0 -1
  53. package/examples/integration/tool/img/home/ic_power.svg +0 -1
  54. package/examples/integration/tool/img/home/ic_squares.svg +0 -1
  55. package/examples/integration/tool/img/home/ic_user-pointer.svg +0 -1
  56. package/examples/integration/tool/img/home/ic_user-square.svg +0 -1
  57. package/examples/integration/tool/img/home/logo_footer.svg +0 -1
  58. package/examples/integration/tool/img/ic/accessControl.svg +0 -1
  59. package/examples/integration/tool/img/ic/account-location.svg +0 -1
  60. package/examples/integration/tool/img/ic/actionDelete.svg +0 -64
  61. package/examples/integration/tool/img/ic/actionOpen.svg +0 -64
  62. package/examples/integration/tool/img/ic/addFile.svg +0 -100
  63. package/examples/integration/tool/img/ic/addFile_off.svg +0 -102
  64. package/examples/integration/tool/img/ic/arrow-left.svg +0 -1
  65. package/examples/integration/tool/img/ic/arrow-right-drop-circle-outline.svg +0 -1
  66. package/examples/integration/tool/img/ic/bt_add_photo.svg +0 -3
  67. package/examples/integration/tool/img/ic/bug.svg +0 -1
  68. package/examples/integration/tool/img/ic/caret-down-bottomsheet.svg +0 -3
  69. package/examples/integration/tool/img/ic/checkbox-blank-outline-grey.svg +0 -8
  70. package/examples/integration/tool/img/ic/checkbox-blank-outline-white.svg +0 -8
  71. package/examples/integration/tool/img/ic/checkbox-blank-outline.svg +0 -1
  72. package/examples/integration/tool/img/ic/checkbox-marked-outline-grey.svg +0 -8
  73. package/examples/integration/tool/img/ic/checkbox-marked-outline-white.svg +0 -8
  74. package/examples/integration/tool/img/ic/checkbox-marked-outline.svg +0 -1
  75. package/examples/integration/tool/img/ic/chevron-down-grey.svg +0 -7
  76. package/examples/integration/tool/img/ic/chevron-down-white.svg +0 -7
  77. package/examples/integration/tool/img/ic/chevron-down.svg +0 -1
  78. package/examples/integration/tool/img/ic/chevron-right-grey.svg +0 -7
  79. package/examples/integration/tool/img/ic/chevron-right-white.svg +0 -7
  80. package/examples/integration/tool/img/ic/chevron-right.svg +0 -1
  81. package/examples/integration/tool/img/ic/comment-text-outline.svg +0 -1
  82. package/examples/integration/tool/img/ic/cookie.svg +0 -1
  83. package/examples/integration/tool/img/ic/delete.svg +0 -1
  84. package/examples/integration/tool/img/ic/dot.svg +0 -1
  85. package/examples/integration/tool/img/ic/dump.svg +0 -1
  86. package/examples/integration/tool/img/ic/e.svg +0 -9
  87. package/examples/integration/tool/img/ic/eye-off.svg +0 -1
  88. package/examples/integration/tool/img/ic/eye.svg +0 -1
  89. package/examples/integration/tool/img/ic/forbidden.svg +0 -1
  90. package/examples/integration/tool/img/ic/form-title-1.svg +0 -3
  91. package/examples/integration/tool/img/ic/group.svg +0 -1
  92. package/examples/integration/tool/img/ic/hamburger.svg +0 -1
  93. package/examples/integration/tool/img/ic/ic-users.svg +0 -1
  94. package/examples/integration/tool/img/ic/ic_dropdown-form-close.svg +0 -3
  95. package/examples/integration/tool/img/ic/ic_dropdown-form-link.svg +0 -3
  96. package/examples/integration/tool/img/ic/ic_feature-edit-cancel.svg +0 -14
  97. package/examples/integration/tool/img/ic/ic_feature-edit-save.svg +0 -14
  98. package/examples/integration/tool/img/ic/ic_gallery-item-delete.svg +0 -3
  99. package/examples/integration/tool/img/ic/ic_gallery-item-view.svg +0 -3
  100. package/examples/integration/tool/img/ic/ic_gps.svg +0 -3
  101. package/examples/integration/tool/img/ic/ic_search.svg +0 -5
  102. package/examples/integration/tool/img/ic/ic_selector_fechas.svg +0 -63
  103. package/examples/integration/tool/img/ic/ic_zoom-to-extent.svg +0 -3
  104. package/examples/integration/tool/img/ic/icon_reminder.png +0 -0
  105. package/examples/integration/tool/img/ic/image-gallery-placeholder.svg +0 -55
  106. package/examples/integration/tool/img/ic/imaqua.svg +0 -87
  107. package/examples/integration/tool/img/ic/incidencia.svg +0 -77
  108. package/examples/integration/tool/img/ic/info_multi_selection.svg +0 -230
  109. package/examples/integration/tool/img/ic/layers.svg +0 -1
  110. package/examples/integration/tool/img/ic/map-marker.svg +0 -3
  111. package/examples/integration/tool/img/ic/map.svg +0 -1
  112. package/examples/integration/tool/img/ic/measure_area.svg +0 -111
  113. package/examples/integration/tool/img/ic/minus.svg +0 -7
  114. package/examples/integration/tool/img/ic/notification.svg +0 -1
  115. package/examples/integration/tool/img/ic/offline.svg +0 -3
  116. package/examples/integration/tool/img/ic/online.svg +0 -1
  117. package/examples/integration/tool/img/ic/pencil.svg +0 -3
  118. package/examples/integration/tool/img/ic/plus.svg +0 -1
  119. package/examples/integration/tool/img/ic/polygon_selection.svg +0 -68
  120. package/examples/integration/tool/img/ic/power.svg +0 -1
  121. package/examples/integration/tool/img/ic/remoteLocalized.svg +0 -4
  122. package/examples/integration/tool/img/ic/remoteStartLocalize.svg +0 -4
  123. package/examples/integration/tool/img/ic/ruler.svg +0 -125
  124. package/examples/integration/tool/img/ic/selection-plus.svg +0 -10
  125. package/examples/integration/tool/img/ic/selection.svg +0 -1
  126. package/examples/integration/tool/img/ic/settings.svg +0 -1
  127. package/examples/integration/tool/img/ic/sort.svg +0 -1
  128. package/examples/integration/tool/img/ic/sort_asc.svg +0 -1
  129. package/examples/integration/tool/img/ic/sort_desc.svg +0 -1
  130. package/examples/integration/tool/img/ic/spreadsheet.svg +0 -3
  131. package/examples/integration/tool/img/ic/times.svg +0 -1
  132. package/examples/integration/tool/img/ic/toolbar/AB3.svg +0 -1
  133. package/examples/integration/tool/img/ic/toolbar/AB4.svg +0 -1
  134. package/examples/integration/tool/img/ic/toolbar/IC1.svg +0 -1
  135. package/examples/integration/tool/img/ic/toolbar/TB1.svg +0 -1
  136. package/examples/integration/tool/img/ic/toolbar/TB11.svg +0 -5
  137. package/examples/integration/tool/img/ic/toolbar/TB2.svg +0 -1
  138. package/examples/integration/tool/img/ic/toolbar/TB20.svg +0 -1
  139. package/examples/integration/tool/img/ic/toolbar/TB21.svg +0 -54
  140. package/examples/integration/tool/img/ic/toolbar/TB3.svg +0 -1
  141. package/examples/integration/tool/img/ic/toolbar/TB31.svg +0 -1
  142. package/examples/integration/tool/img/ic/toolbar/TB32.svg +0 -57
  143. package/examples/integration/tool/img/ic/toolbar/TB4.svg +0 -1
  144. package/examples/integration/tool/img/ic/toolbar/TB5.svg +0 -1
  145. package/examples/integration/tool/img/ic/toolbar/TB6.svg +0 -1
  146. package/examples/integration/tool/img/ic/toolbar/TB7.svg +0 -1
  147. package/examples/integration/tool/img/ic/toolbar/TB8.svg +0 -1
  148. package/examples/integration/tool/img/ic/tools.svg +0 -28
  149. package/examples/integration/tool/img/ic/user.svg +0 -1
  150. package/examples/integration/tool/img/ic/vector-polygon.svg +0 -1
  151. package/examples/integration/tool/img/ic/visit_manager.svg +0 -135
  152. package/examples/integration/tool/img/logo-footer-login.png +0 -0
  153. package/examples/integration/tool/img/logo-footer.png +0 -0
  154. package/examples/integration/tool/img/logo-header-login.png +0 -0
  155. package/examples/integration/tool/img/logo-header-login@2x.png +0 -0
  156. package/examples/integration/tool/img/logo-header-login@3x.png +0 -0
  157. package/examples/integration/tool/img/logo-header.png +0 -0
  158. package/examples/integration/tool/img/logo-header@2x.png +0 -0
  159. package/examples/integration/tool/img/logo-header@3x.png +0 -0
  160. package/examples/integration/tool/img/logo_project.png +0 -0
  161. package/examples/integration/tool/img/photo-gallery-placeholder.svg +0 -3
  162. package/examples/integration/tool/img/pixel.png +0 -0
  163. package/examples/integration/tool/index.html +0 -228
  164. package/examples/integration/tool/js/demo.js +0 -238
  165. package/examples/integration/tool/js/interface.js +0 -147
  166. package/examples/integration/tool/js/jquery.js +0 -4
  167. package/examples/integration/vanguardia.html +0 -6636
  168. package/examples/taigua/global.css +0 -10
  169. package/examples/xavi/index.html +0 -37
  170. package/examples/xavi/main.js +0 -168
@@ -1 +0,0 @@
1
- <?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg enable-background="new -0.709 -3.459 141.732 141.732" height="141.732px" id="Livello_1" version="1.1" viewBox="-0.709 -3.459 141.732 141.732" width="141.732px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Livello_101"><path d="M70.157,78.355c17.968,0,32.535-17.541,32.535-39.178C102.692,17.54,88.125,0,70.157,0S37.623,17.541,37.623,39.178 C37.623,60.815,52.189,78.355,70.157,78.355 M70.157,78.355c-37.146,0-67.548,24.904-70.157,56.46h140.314 C137.705,103.26,107.304,78.355,70.157,78.355"/></g><g id="Livello_1_1_"/></svg>
@@ -1 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M2,2V8H4.28L5.57,16H4V22H10V20.06L15,20.05V22H21V16H19.17L20,9H22V3H16V6.53L14.8,8H9.59L8,5.82V2M4,4H6V6H4M18,5H20V7H18M6.31,8H7.11L9,10.59V14H15V10.91L16.57,9H18L17.16,16H15V18.06H10V16H7.6M11,10H13V12H11M6,18H8V20H6M17,18H19V20H17" /></svg>
@@ -1,135 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
-
4
- <svg
5
- xmlns:dc="http://purl.org/dc/elements/1.1/"
6
- xmlns:cc="http://creativecommons.org/ns#"
7
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
- xmlns:svg="http://www.w3.org/2000/svg"
9
- xmlns="http://www.w3.org/2000/svg"
10
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
- width="24"
13
- height="24"
14
- viewBox="0 0 6.3499999 6.3500002"
15
- version="1.1"
16
- id="svg8"
17
- inkscape:version="0.92.3 (2405546, 2018-03-11)"
18
- sodipodi:docname="visit_manager.svg">
19
- <defs
20
- id="defs2" />
21
- <sodipodi:namedview
22
- id="base"
23
- pagecolor="#ffffff"
24
- bordercolor="#666666"
25
- borderopacity="1.0"
26
- inkscape:pageopacity="0.0"
27
- inkscape:pageshadow="2"
28
- inkscape:zoom="15.839192"
29
- inkscape:cx="2.7587008"
30
- inkscape:cy="11.549382"
31
- inkscape:document-units="mm"
32
- inkscape:current-layer="layer1"
33
- showgrid="false"
34
- units="px"
35
- inkscape:window-width="1920"
36
- inkscape:window-height="1001"
37
- inkscape:window-x="-9"
38
- inkscape:window-y="-9"
39
- inkscape:window-maximized="1" />
40
- <metadata
41
- id="metadata5">
42
- <rdf:RDF>
43
- <cc:Work
44
- rdf:about="">
45
- <dc:format>image/svg+xml</dc:format>
46
- <dc:type
47
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
48
- <dc:title></dc:title>
49
- </cc:Work>
50
- </rdf:RDF>
51
- </metadata>
52
- <g
53
- inkscape:label="Layer 1"
54
- inkscape:groupmode="layer"
55
- id="layer1"
56
- transform="translate(0,-290.64998)">
57
- <path
58
- inkscape:connector-curvature="0"
59
- d="M 5.353214,296.31437 H 0.996785 v -3.42291 h 4.356429 m -0.933522,-2.17822 v 0.62235 H 1.930307 v -0.62235 H 1.307955 v 0.62235 h -0.31117 c -0.345406,0 -0.622352,0.27694 -0.622352,0.62235 v 4.35643 a 0.6223482,0.6223482 0 0 0 0.622352,0.62235 h 4.356429 a 0.6223482,0.6223482 0 0 0 0.622353,-0.62235 v -4.35643 c 0,-0.34541 -0.280063,-0.62235 -0.622353,-0.62235 h -0.31117 v -0.62235"
60
- id="path4"
61
- style="stroke-width:0.31117409" />
62
- <g
63
- id="g971"
64
- transform="matrix(0.00889301,0,0,0.00889301,1.6187219,293.0538)">
65
- <g
66
- id="g912">
67
- <path
68
- id="path904"
69
- d="m 175,171.173 c 38.914,0 70.463,-38.318 70.463,-85.586 C 245.463,38.318 235.105,0 175,0 c -60.105,0 -70.465,38.318 -70.465,85.587 0,47.268 31.549,85.586 70.465,85.586 z"
70
- inkscape:connector-curvature="0" />
71
-
72
- <path
73
- id="path906"
74
- d="m 41.909,301.853 c -0.012,-2.882 -0.024,-0.812 0,0 z"
75
- inkscape:connector-curvature="0" />
76
-
77
- <path
78
- id="path908"
79
- d="m 308.085,304.104 c 0.038,-0.789 0.013,-5.474 0,0 z"
80
- inkscape:connector-curvature="0" />
81
-
82
- <path
83
- id="path910"
84
- d="M 307.935,298.397 C 306.63,216.055 295.876,192.592 213.583,177.74 c 0,0 -11.584,14.761 -38.584,14.761 -27,0 -38.586,-14.761 -38.586,-14.761 -81.395,14.69 -92.803,37.805 -94.303,117.982 -0.123,6.547 -0.18,6.891 -0.202,6.131 0.005,1.424 0.011,4.058 0.011,8.651 0,0 19.592,39.496 133.08,39.496 113.486,0 133.08,-39.496 133.08,-39.496 0,-2.951 0.002,-5.003 0.005,-6.399 -0.022,0.47 -0.066,-0.441 -0.149,-5.708 z"
85
- inkscape:connector-curvature="0" />
86
-
87
- </g>
88
- <g
89
- id="g914">
90
- </g>
91
- <g
92
- id="g916">
93
- </g>
94
- <g
95
- id="g918">
96
- </g>
97
- <g
98
- id="g920">
99
- </g>
100
- <g
101
- id="g922">
102
- </g>
103
- <g
104
- id="g924">
105
- </g>
106
- <g
107
- id="g926">
108
- </g>
109
- <g
110
- id="g928">
111
- </g>
112
- <g
113
- id="g930">
114
- </g>
115
- <g
116
- id="g932">
117
- </g>
118
- <g
119
- id="g934">
120
- </g>
121
- <g
122
- id="g936">
123
- </g>
124
- <g
125
- id="g938">
126
- </g>
127
- <g
128
- id="g940">
129
- </g>
130
- <g
131
- id="g942">
132
- </g>
133
- </g>
134
- </g>
135
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="44" height="44" viewBox="0 0 44 44">
2
- <path fill="#E0E0E0" fill-rule="nonzero" d="M13.75 25.25l5.536 6.5 7.75-9.75L37 35H6l7.75-9.75zM42 37.556V6.444C42 3.978 40 2 37.556 2H6.444A4.444 4.444 0 0 0 2 6.444v31.112A4.444 4.444 0 0 0 6.444 42h31.112A4.444 4.444 0 0 0 42 37.556z"/>
3
- </svg>
@@ -1,228 +0,0 @@
1
-
2
- <!DOCTYPE html>
3
- <html>
4
- <head>
5
- <base>
6
- <link rel="stylesheet" href="css/dist/style.min.css" />
7
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
8
- <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet">
9
- <meta charset="utf-8" />
10
- <title>Demo BMAPS con componente</title>
11
- </head>
12
- <body>
13
- <header>
14
- <a href="javascript: return false;" class="menu-toggle closed">
15
- <img src="img/ic/hamburger.svg" class="svg hamburger" />
16
- <img src="img/ic/times.svg" class="svg times" />
17
-
18
- </a>
19
- <div class="brand">
20
- <a href="https://bmaps.bgeo.es/dev/demo/home.php"><img src="img/logo_project.png" border="0"/></a>
21
- </div>
22
-
23
- <ul class="tools">
24
- <!-- Icono "geolocalizador" -->
25
- <li>
26
- <button id="btGeolocalize" title="Geolocalización" data-container="body"><img src="img/ic/toolbar/TB1.svg" class="svg" /></button>
27
- </li>
28
- <!-- FIN Icono "geolocalizador" -->
29
- <!-- Icono "Zoom In" -->
30
- <li>
31
- <button id="btZoomIn" data-toggle="tooltip" data-placement="left" title="{{tooltipZoomIn}}" data-container="body"><img src="img/ic/toolbar/TB3.svg" class="svg" /></button>
32
-
33
- </li>
34
- <!-- FIN Icono "Zoom In" -->
35
- <!-- Icono "Zoom out" -->
36
- <li>
37
- <button id="btZoomOut" data-toggle="tooltip" data-placement="left" title="{{tooltipZoomOut}}" data-container="body"><img src="img/ic/toolbar/TB4.svg" class="svg" /></button>
38
-
39
- </li>
40
- <!-- FIN Icono "Zoom in" -->
41
- <!-- Icono "Zoom extension" -->
42
- <li>
43
- <button id="btZoomToExtent" data-toggle="tooltip" data-placement="left" title="{{tooltipExtent}}" data-container="body"><img src="img/ic/toolbar/TB2.svg" class="svg" /></button>
44
-
45
- </li>
46
- <!-- FIN Icono "Zoom extension" -->
47
- <!-- Icono "Añadir punto" -->
48
- <li >
49
- <button id="btAddPoint" data-toggle="tooltip" data-placement="left" ng-class="selectedClass" data-container="body" title="{{tooltipaddPoint}}"><img src="img/ic/toolbar/TB7.svg" class="svg" /></a></button>
50
-
51
- </li>
52
- <!-- FIN Icono "Añadir punto" -->
53
- <!-- Icono "Añadir arco" -->
54
- <li>
55
- <button id="btAddLine" ng-disabled="addLineDisabled" ng-class="selectedClass" data-toggle="tooltip" data-placement="left" data-container="body" title="{{tooltipaddLine}}"><img src="img/ic/toolbar/TB8.svg" class="svg" /></a></button>
56
-
57
- </li>
58
- <!-- FIN Icono "Añadir arco" -->
59
- <!-- Icono "bt Polygon" -->
60
- <li>
61
- <button id="btAddPolygon" ng-class="selectedClass" data-toggle="tooltip" data-placement="left" data-container="body" title="{{tooltipaddPolygon}}"><img src="img/ic/vector-polygon.svg" class="svg" /></a></button>
62
- </li>
63
- <!-- FIN Icono "bt Polygon" -->
64
- <!-- Icono "New mincut" -->
65
- <li>
66
- <button data-toggle="tooltip" data-placement="left" ng-class="selectedClass" data-container="body" title="{{tooltipMincut}}"><img src="img/ic/toolbar/TB31.svg" class="svg" /></a></button>
67
-
68
- </li>
69
- <!-- FIN Icono "End new mincut" -->
70
-
71
- </ul>
72
-
73
- </header>
74
-
75
- <div class="menu-toc">
76
- <div class="sidebar closed">
77
- <ul>
78
-
79
- <li>
80
- <a href="#">
81
- <div class="col col-1"><img src="img/ic/settings.svg" class="svg ico" /></div>
82
- <div class="col col-2">Configuración</div>
83
- <div class="col col-3"><img src="img/ic/chevron-right.svg" class="svg chevron pull-right" /></div>
84
- </a>
85
- <!-- Configuración CONTAINER -->
86
- <div class="content">
87
- <div class="toc-config">
88
- <div class="form">
89
- <div class="form-control" ng-show="mc.show_use_tiled_background">
90
- <label for="blankCheckbox">Usar mapa de fondo tileado</label>
91
- <input type="checkbox" id="tiledCheck" checked onclick="toggleTiled()">Usar mapa de fondo tileado
92
- </div>
93
- </div>
94
- </div>
95
- </div>
96
- <!-- END Configuración CONTAINER -->
97
- </li>
98
-
99
-
100
- </div>
101
- </div>
102
-
103
- <div class="menu-tools">
104
- <a href="#" class="menu-toggle closed" id="menuToolsMobile">
105
- <img src="img/ic/tools.svg" class="svg hamburger" />
106
- <img src="img/ic/times.svg" class="svg times" />
107
- </a>
108
- <ul class="tools closed">
109
- <!-- Icono "geolocalizador" -->
110
- <li>
111
- <button id="btGeolocalize" title="Geolocalización" data-container="body"><img src="img/ic/toolbar/TB1.svg" class="svg" /></button>
112
- </li>
113
- <!-- FIN Icono "geolocalizador" -->
114
- <!-- Icono "Zoom In" -->
115
- <li>
116
- <button id="btZoomIn" data-toggle="tooltip" data-placement="left" title="{{tooltipZoomIn}}" data-container="body"><img src="img/ic/toolbar/TB3.svg" class="svg" /></button>
117
-
118
- </li>
119
- <!-- FIN Icono "Zoom In" -->
120
- <!-- Icono "Zoom out" -->
121
- <li>
122
- <button id="btZoomOut" data-toggle="tooltip" data-placement="left" title="{{tooltipZoomOut}}" data-container="body"><img src="img/ic/toolbar/TB4.svg" class="svg" /></button>
123
-
124
- </li>
125
- <!-- FIN Icono "Zoom in" -->
126
- <!-- Icono "Zoom extension" -->
127
- <li>
128
- <button id="btZoomToExtent" data-toggle="tooltip" data-placement="left" title="{{tooltipExtent}}" data-container="body"><img src="img/ic/toolbar/TB2.svg" class="svg" /></button>
129
-
130
- </li>
131
- <!-- FIN Icono "Zoom extension" -->
132
- <!-- Icono "Añadir punto" -->
133
- <li >
134
- <button id="btAddPoint" data-toggle="tooltip" data-placement="left" ng-class="selectedClass" data-container="body" title="{{tooltipaddPoint}}"><img src="img/ic/toolbar/TB7.svg" class="svg" /></a></button>
135
-
136
- </li>
137
- <!-- FIN Icono "Añadir punto" -->
138
- <!-- Icono "Añadir arco" -->
139
- <li>
140
- <button id="btAddLine" ng-disabled="addLineDisabled" ng-class="selectedClass" data-toggle="tooltip" data-placement="left" data-container="body" title="{{tooltipaddLine}}"><img src="img/ic/toolbar/TB8.svg" class="svg" /></a></button>
141
-
142
- </li>
143
- <!-- FIN Icono "Añadir arco" -->
144
- <!-- Icono "bt Polygon" -->
145
- <li>
146
- <button id="btAddPolygon" ng-class="selectedClass" data-toggle="tooltip" data-placement="left" data-container="body" title="{{tooltipaddPolygon}}"><img src="img/ic/vector-polygon.svg" class="svg" /></a></button>
147
- </li>
148
- <!-- FIN Icono "bt Polygon" -->
149
- <!-- Icono "New mincut" -->
150
- <li>
151
- <button data-toggle="tooltip" data-placement="left" ng-class="selectedClass" data-container="body" title="{{tooltipMincut}}"><img src="img/ic/toolbar/TB31.svg" class="svg" /></a></button>
152
-
153
- </li>
154
- <!-- FIN Icono "End new mincut" -->
155
- </ul>
156
- </div>
157
-
158
- <div id="map">
159
- <iframe id="map-frame" name="map-frame" width="100%" height="100%" src="" allow="geolocation"></iframe>
160
- </div>
161
- <div class="forms-area">
162
- <!-- ************************************************************************************* -->
163
- <!-- ************************************************************************************* -->
164
- <!-- ******************************** Form Filters **************************** -->
165
- <!-- ************************************************************************************* -->
166
- <!-- ************************************************************************************* -->
167
-
168
- <div id="infoContainer" class="drop-down-form">
169
-
170
- <div class="header">
171
- <div class="title">
172
- <div class="ico-area">
173
- <img src="img/ic/ic_search.svg"/>
174
- </div>
175
- <span class="title-area" id="formName"></span>
176
- <div class="buttons-area">
177
- <button onclick="closePointInfo()"><img src="img/ic/ic_dropdown-form-close.svg" alt="Cerrar" /></button>
178
- <!-- Botón cerrar siempre visible -->
179
- </div>
180
- </div>
181
- <div class="tabs">
182
- <ul>
183
- <li><button>Info</button></li>
184
- </ul>
185
- </div>
186
- </div>
187
-
188
- <div class="content">
189
- <div class="tab-content dynamicForm" ng-repeat="tab in mc.filterTabs">
190
-
191
- <div class="form-component" id="fields">
192
-
193
- </div>
194
- </div>
195
- </div>
196
- <div class="footer">
197
- <div ng-repeat="tab in mc.filterTabs">
198
- <span ng-repeat="item in tab.fields">
199
- <form-button data="{{item}}" ng-model="item.name" ng-if="item.type=='button' && item.position=='footer' && tab.active"></form-button>
200
- </span>
201
- <!-- TBR legacy should be removed when all responses use position=footer/header/body -->
202
- <div class="form-component" ng-repeat="item in tab.buttons">
203
- <form-button data="{{item}}" ng-model="item.name" ng-if="item.type=='button'"></form-button>
204
- </div>
205
- </div>
206
- </div>
207
- </div>
208
- <!-- ************************************************************************************* -->
209
- <!-- ************************************************************************************* -->
210
- <!-- ******************************** FIN form filters ***************************** -->
211
- <!-- ************************************************************************************* -->
212
- <!-- ************************************************************************************* -->
213
- </div>
214
-
215
-
216
-
217
- <script src="js/jquery.js"></script>
218
- <script src="https://bmaps.bgeo.es/dev/demo/js/libs/jquery/1.12.1/jquery-ui.min.js"></script>
219
- <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css">
220
-
221
- <script src="https://unpkg.com/@vidro/map-handler@1.0.7/dist/map-handler.js"></script>
222
- <script src="js/interface.js"></script>
223
- <script src="js/demo.js"></script>
224
-
225
-
226
-
227
- </body>
228
- </html>
@@ -1,238 +0,0 @@
1
- // Config:
2
- const urlParams = new URLSearchParams(window.location.search);
3
- var iframe = document.querySelector("#map-frame");
4
- const user = urlParams.get('user');
5
- const pwd = urlParams.get('pwd');
6
- const apiUrl = urlParams.get('api');
7
- const mapId = 117;
8
- var communicator;
9
- var usertoken;
10
- var clickedCoordinates = null;
11
- //UI
12
- var btZoomIn = document.querySelector("#btZoomIn");
13
- var btZoomOut = document.querySelector("#btZoomOut");
14
- var btZoomToExtent = document.querySelector("#btZoomToExtent");
15
- var btAddPoint = document.querySelector("#btAddPoint");
16
- var btAddPolygon = document.querySelector("#btAddPolygon");
17
- var btAddLine = document.querySelector("#btAddLine");
18
- var btGeolocalize = document.querySelector("#btGeolocalize");
19
- console.log('Starting demo');
20
-
21
- //Build XMLHttpRequest for login
22
- //form values
23
-
24
- var data = { user: user, pwd: pwd };
25
- var oReq = new XMLHttpRequest();
26
- oReq.addEventListener("load", function(){
27
- if (this.status === 200) {
28
- console.log("Login response", this.responseText);
29
- var res = JSON.parse(this.responseText);
30
- //store token value on dom
31
- usertoken = res.message.token;
32
-
33
- loadMap();
34
- } else {
35
- console.error(this.status);
36
- var res = JSON.parse(this.responseText);
37
- console.log(res.error);
38
- }
39
- });
40
- oReq.open("POST", `${apiUrl}letsgo`, true);
41
- oReq.setRequestHeader("Content-type", "application/json");
42
- oReq.send(JSON.stringify(data));
43
- console.log("Attempt to log in", `${apiUrl}letsgo`, data);
44
-
45
-
46
- //************** MAP EXAMPLE
47
- function loadMap(){
48
- //Build XMLHttpRequest for map
49
-
50
- //form values
51
- var zoom = 14;
52
- var use_giswater_tiled = 1;
53
- var logo = 'https://bmaps.bgeo.es/dev/demo/tpl/default/img/logo-header-login.png';
54
- var uri = `${apiUrl}map/${mapId}?use_giswater_tiled=${use_giswater_tiled}&zoom=${zoom}&logo=${logo}`;
55
- console.log(uri)
56
- var oReq = new XMLHttpRequest();
57
- oReq.addEventListener("load", function(){
58
- if (this.status === 200) {
59
- console.log("mapListener response", this.responseText);
60
- var res = JSON.parse(this.responseText);
61
- //var src = `http://localhost:3000/?sessionToken=${res.message.sessionToken}`;
62
-
63
- var src = `https://devcomponent.vidrosoftware.com/?sessionToken=${res.message.sessionToken}`;
64
- //var src = `${res.message.iframe}?sessionToken=${res.message.sessionToken}`;
65
- iframe.src = src;
66
- console.log("iframe src", src);
67
- communicator = new VidroMaps.Communicator({sessionToken:res.message.sessionToken});
68
- communicator.setDebug(1);
69
- setListeners();
70
- } else {
71
- console.error(this.status);
72
- var res = JSON.parse(this.responseText);
73
- console.error(res.error);
74
- }
75
- });
76
- oReq.open("GET", uri, true);
77
- oReq.setRequestHeader('Authorization',`Bearer ${usertoken}`);
78
- oReq.setRequestHeader("Content-type", "application/json");
79
- oReq.send(JSON.stringify(data));
80
- console.log("Attempt to load map", `${apiUrl}map/${mapId}`, data);
81
- }
82
-
83
-
84
- //************** END MAP EXAMPLE
85
-
86
- btZoomIn.addEventListener("click", function(){
87
- return communicator.ZoomIn();
88
- });
89
- btZoomOut.addEventListener("click", function(){
90
- communicator.ZoomOut();
91
- });
92
- if(btZoomToExtent){
93
- btZoomToExtent.addEventListener("click", function(){
94
- communicator.zoomToExtent();
95
- });
96
- }
97
- if(btAddPoint){
98
- btAddPoint.addEventListener("click", function(){
99
- communicator.AddGeom('Point');
100
- });
101
- }
102
- if(btAddPolygon){
103
- btAddPolygon.addEventListener("click", function(){
104
- communicator.AddGeom('Polygon');
105
- });
106
- }
107
- if(btAddLine){
108
- btAddLine.addEventListener("click", function(){
109
- communicator.AddGeom('Line');
110
- });
111
- }
112
- if(btGeolocalize){
113
- btGeolocalize.addEventListener("click", function(){
114
- console.log("geolocalizing")
115
- communicator.Geolocalize(true);
116
- });
117
- }
118
-
119
- function toggleTiled(){
120
- communicator.toggleGiswaterTiled(document.getElementById('tiledCheck').checked);
121
- }
122
-
123
- // Map events
124
- function setListeners(){
125
- communicator.on("onZoomChange", function(data){
126
- console.log("onZoomChange",data);
127
- });
128
-
129
-
130
- communicator.on("geomAdded", function(data){
131
- console.log("geomAdded",data);
132
- });
133
-
134
- communicator.on("loaded", function(data){
135
- console.log("loaded",data);
136
- });
137
-
138
- communicator.on("layers", function(data){
139
- console.log("layers received",data);
140
-
141
- });
142
-
143
- communicator.on("geoJSONlayers", function(data){
144
- console.log("geoJSONlayers received",data);
145
- });
146
-
147
- //error event
148
- communicator.on("error", function(data){
149
- console.error("error",data);
150
-
151
- });
152
-
153
- //clicked coordinates
154
- communicator.on("coordinates", function(data){
155
- console.info("coordinates",data);
156
- clickedCoordinates = [data.coordinates[0],data.coordinates[1]];
157
- communicator.infoFromCoordinates('giswater');
158
- });
159
-
160
- communicator.on("activeLayer", function(data){
161
- console.info("activeLayer",data);
162
- });
163
-
164
- communicator.on("geolocation", function(data){
165
- console.info("geolocation",data);
166
- });
167
-
168
- communicator.on("GiswaterLayerAvailableFilters", function(data){
169
- console.info("GiswaterLayerAvailableFilters",data);
170
- });
171
-
172
-
173
- //info event
174
- communicator.on("info", function(data){
175
- console.log("info received",data);
176
- var dataToRender = data.data;
177
- //depending on infoType, data.data can be an string or a JSON
178
- if(data.infoType==="giswater"){
179
- addInfo(dataToRender.formTabs,dataToRender.editData.fields,dataToRender.geometry)
180
- }
181
-
182
- });
183
-
184
- //giswater tiled background
185
- communicator.on("giswaterTiledBackgroundDisplayed", function(data){
186
- console.log("giswaterTiledBackgroundDisplayed",data);
187
- });
188
- communicator.on("giswaterTiledBackgroundAvailable", function(data){
189
- console.log("giswaterTiledBackgroundAvailable",data);
190
-
191
- });
192
- communicator.on("WMSInfoAvailable", function(){
193
- console.log("WMSInfoAvailable");
194
- });
195
- communicator.on("availableWMSLayers", function(data){
196
- console.log("availableWMSLayers",data);
197
- });
198
- }
199
-
200
- //INFO
201
- var infoContainer = document.querySelector("#infoContainer");
202
- var fields = document.querySelector("#fields");
203
- var formName = document.querySelector("#formName");
204
-
205
- function closePointInfo(){
206
- console.log("closePointInfo")
207
- console.log(infoContainer)
208
- infoContainer.classList.remove('visible')
209
- }
210
-
211
- function addInfo(data,editData,geometry){
212
- infoContainer.classList.add('visible');
213
- console.log(data,editData,geometry)
214
- formName.innerHTML = data.formName;
215
- var content = '';
216
- //find tab
217
- for(let i=0; i<editData.length;i++){
218
- content += createFormInfoInput(editData[i].label,editData[i].value)
219
-
220
- }
221
- fields.innerHTML = content;
222
- }
223
-
224
- function createFormInfoInput(label, value){
225
- return `<div class="form-component form-component--key-value">
226
- <label>${label}</label>
227
- <input type="text" value=${value}>
228
-
229
- <div class="spacer-10"></div>
230
- </div>`
231
-
232
- }
233
-
234
-
235
-
236
-
237
-
238
-