@vidro/map-handler 1.0.6 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. package/README.md +187 -10
  2. package/dist/map-handler.js +1 -1
  3. package/doc/giswater.png +0 -0
  4. package/doc/giswaterInfo.png +0 -0
  5. package/doc/giswaterInfoApi.png +0 -0
  6. package/doc/giswatergeojson.png +0 -0
  7. package/doc/multiTile.png +0 -0
  8. package/doc/multiTileNoGutter.png +0 -0
  9. package/doc/togglelayergiswater.png +0 -0
  10. package/doc/vidromaps-basic.png +0 -0
  11. package/examples/externalwms/index.js +20 -0
  12. package/examples/externalwms/index.php +88 -0
  13. package/examples/full/apidemo.js +43 -1
  14. package/examples/full/cachedToken.dat +1 -1
  15. package/examples/full/cachedTokenData.dat +1 -1
  16. package/examples/full/index.php +31 -16
  17. package/examples/full/tester.js +172 -12
  18. package/examples/integration/tool/css/dist/home.css.min.css +0 -0
  19. package/examples/integration/tool/css/dist/home.min.css +1 -0
  20. package/examples/integration/tool/css/dist/home.min.css.map +10 -0
  21. package/examples/integration/tool/css/dist/style-login.css.min.css +0 -0
  22. package/examples/integration/tool/css/dist/style-login.min.css +1 -0
  23. package/examples/integration/tool/css/dist/style-login.min.css.map +10 -0
  24. package/examples/integration/tool/css/dist/style.css.min.css +0 -0
  25. package/examples/integration/tool/css/dist/style.min.css +1 -0
  26. package/examples/integration/tool/css/dist/style.min.css.map +23 -0
  27. package/examples/integration/tool/css/master/_bottom-sheet-2.scss +103 -0
  28. package/examples/integration/tool/css/master/_bottom-sheet.scss +142 -0
  29. package/examples/integration/tool/css/master/_colors.scss +35 -0
  30. package/examples/integration/tool/css/master/_dropdown-form.scss +167 -0
  31. package/examples/integration/tool/css/master/_forms.scss +416 -0
  32. package/examples/integration/tool/css/master/_header.scss +134 -0
  33. package/examples/integration/tool/css/master/_menu-toc.scss +135 -0
  34. package/examples/integration/tool/css/master/_menu-tools.scss +187 -0
  35. package/examples/integration/tool/css/master/_mixins.scss +42 -0
  36. package/examples/integration/tool/css/master/_notifyjs.scss +39 -0
  37. package/examples/integration/tool/css/master/_ol-map-controls.scss +117 -0
  38. package/examples/integration/tool/css/master/_simplelightbox.scss +287 -0
  39. package/examples/integration/tool/css/master/_toc-config.scss +28 -0
  40. package/examples/integration/tool/css/master/_toc-layouts.scss +173 -0
  41. package/examples/integration/tool/css/master/_tooltip.scss +34 -0
  42. package/examples/integration/tool/css/master/home.scss +266 -0
  43. package/examples/integration/tool/css/master/style-login.scss +240 -0
  44. package/examples/integration/tool/css/master/style.scss +166 -0
  45. package/examples/integration/tool/img/doc-gallery-placeholder.svg +3 -0
  46. package/examples/integration/tool/img/home/ic_calendar-clock.svg +1 -0
  47. package/examples/integration/tool/img/home/ic_caret-down.svg +1 -0
  48. package/examples/integration/tool/img/home/ic_cog.svg +1 -0
  49. package/examples/integration/tool/img/home/ic_marker.svg +1 -0
  50. package/examples/integration/tool/img/home/ic_play-circle.svg +1 -0
  51. package/examples/integration/tool/img/home/ic_power.svg +1 -0
  52. package/examples/integration/tool/img/home/ic_squares.svg +1 -0
  53. package/examples/integration/tool/img/home/ic_user-pointer.svg +1 -0
  54. package/examples/integration/tool/img/home/ic_user-square.svg +1 -0
  55. package/examples/integration/tool/img/home/logo_footer.svg +1 -0
  56. package/examples/integration/tool/img/ic/accessControl.svg +1 -0
  57. package/examples/integration/tool/img/ic/account-location.svg +1 -0
  58. package/examples/integration/tool/img/ic/actionDelete.svg +64 -0
  59. package/examples/integration/tool/img/ic/actionOpen.svg +64 -0
  60. package/examples/integration/tool/img/ic/addFile.svg +100 -0
  61. package/examples/integration/tool/img/ic/addFile_off.svg +102 -0
  62. package/examples/integration/tool/img/ic/arrow-left.svg +1 -0
  63. package/examples/integration/tool/img/ic/arrow-right-drop-circle-outline.svg +1 -0
  64. package/examples/integration/tool/img/ic/bt_add_photo.svg +3 -0
  65. package/examples/integration/tool/img/ic/bug.svg +1 -0
  66. package/examples/integration/tool/img/ic/caret-down-bottomsheet.svg +3 -0
  67. package/examples/integration/tool/img/ic/checkbox-blank-outline-grey.svg +8 -0
  68. package/examples/integration/tool/img/ic/checkbox-blank-outline-white.svg +8 -0
  69. package/examples/integration/tool/img/ic/checkbox-blank-outline.svg +1 -0
  70. package/examples/integration/tool/img/ic/checkbox-marked-outline-grey.svg +8 -0
  71. package/examples/integration/tool/img/ic/checkbox-marked-outline-white.svg +8 -0
  72. package/examples/integration/tool/img/ic/checkbox-marked-outline.svg +1 -0
  73. package/examples/integration/tool/img/ic/chevron-down-grey.svg +7 -0
  74. package/examples/integration/tool/img/ic/chevron-down-white.svg +7 -0
  75. package/examples/integration/tool/img/ic/chevron-down.svg +1 -0
  76. package/examples/integration/tool/img/ic/chevron-right-grey.svg +7 -0
  77. package/examples/integration/tool/img/ic/chevron-right-white.svg +7 -0
  78. package/examples/integration/tool/img/ic/chevron-right.svg +1 -0
  79. package/examples/integration/tool/img/ic/comment-text-outline.svg +1 -0
  80. package/examples/integration/tool/img/ic/cookie.svg +1 -0
  81. package/examples/integration/tool/img/ic/delete.svg +1 -0
  82. package/examples/integration/tool/img/ic/dot.svg +1 -0
  83. package/examples/integration/tool/img/ic/dump.svg +1 -0
  84. package/examples/integration/tool/img/ic/e.svg +9 -0
  85. package/examples/integration/tool/img/ic/eye-off.svg +1 -0
  86. package/examples/integration/tool/img/ic/eye.svg +1 -0
  87. package/examples/integration/tool/img/ic/forbidden.svg +1 -0
  88. package/examples/integration/tool/img/ic/form-title-1.svg +3 -0
  89. package/examples/integration/tool/img/ic/group.svg +1 -0
  90. package/examples/integration/tool/img/ic/hamburger.svg +1 -0
  91. package/examples/integration/tool/img/ic/ic-users.svg +1 -0
  92. package/examples/integration/tool/img/ic/ic_dropdown-form-close.svg +3 -0
  93. package/examples/integration/tool/img/ic/ic_dropdown-form-link.svg +3 -0
  94. package/examples/integration/tool/img/ic/ic_feature-edit-cancel.svg +14 -0
  95. package/examples/integration/tool/img/ic/ic_feature-edit-save.svg +14 -0
  96. package/examples/integration/tool/img/ic/ic_gallery-item-delete.svg +3 -0
  97. package/examples/integration/tool/img/ic/ic_gallery-item-view.svg +3 -0
  98. package/examples/integration/tool/img/ic/ic_gps.svg +3 -0
  99. package/examples/integration/tool/img/ic/ic_search.svg +5 -0
  100. package/examples/integration/tool/img/ic/ic_selector_fechas.svg +63 -0
  101. package/examples/integration/tool/img/ic/ic_zoom-to-extent.svg +3 -0
  102. package/examples/integration/tool/img/ic/icon_reminder.png +0 -0
  103. package/examples/integration/tool/img/ic/image-gallery-placeholder.svg +55 -0
  104. package/examples/integration/tool/img/ic/imaqua.svg +87 -0
  105. package/examples/integration/tool/img/ic/incidencia.svg +77 -0
  106. package/examples/integration/tool/img/ic/info_multi_selection.svg +230 -0
  107. package/examples/integration/tool/img/ic/layers.svg +1 -0
  108. package/examples/integration/tool/img/ic/map-marker.svg +3 -0
  109. package/examples/integration/tool/img/ic/map.svg +1 -0
  110. package/examples/integration/tool/img/ic/measure_area.svg +111 -0
  111. package/examples/integration/tool/img/ic/minus.svg +7 -0
  112. package/examples/integration/tool/img/ic/notification.svg +1 -0
  113. package/examples/integration/tool/img/ic/offline.svg +3 -0
  114. package/examples/integration/tool/img/ic/online.svg +1 -0
  115. package/examples/integration/tool/img/ic/pencil.svg +3 -0
  116. package/examples/integration/tool/img/ic/plus.svg +1 -0
  117. package/examples/integration/tool/img/ic/polygon_selection.svg +68 -0
  118. package/examples/integration/tool/img/ic/power.svg +1 -0
  119. package/examples/integration/tool/img/ic/remoteLocalized.svg +4 -0
  120. package/examples/integration/tool/img/ic/remoteStartLocalize.svg +4 -0
  121. package/examples/integration/tool/img/ic/ruler.svg +125 -0
  122. package/examples/integration/tool/img/ic/selection-plus.svg +10 -0
  123. package/examples/integration/tool/img/ic/selection.svg +1 -0
  124. package/examples/integration/tool/img/ic/settings.svg +1 -0
  125. package/examples/integration/tool/img/ic/sort.svg +1 -0
  126. package/examples/integration/tool/img/ic/sort_asc.svg +1 -0
  127. package/examples/integration/tool/img/ic/sort_desc.svg +1 -0
  128. package/examples/integration/tool/img/ic/spreadsheet.svg +3 -0
  129. package/examples/integration/tool/img/ic/times.svg +1 -0
  130. package/examples/integration/tool/img/ic/toolbar/AB3.svg +1 -0
  131. package/examples/integration/tool/img/ic/toolbar/AB4.svg +1 -0
  132. package/examples/integration/tool/img/ic/toolbar/IC1.svg +1 -0
  133. package/examples/integration/tool/img/ic/toolbar/TB1.svg +1 -0
  134. package/examples/integration/tool/img/ic/toolbar/TB11.svg +5 -0
  135. package/examples/integration/tool/img/ic/toolbar/TB2.svg +1 -0
  136. package/examples/integration/tool/img/ic/toolbar/TB20.svg +1 -0
  137. package/examples/integration/tool/img/ic/toolbar/TB21.svg +54 -0
  138. package/examples/integration/tool/img/ic/toolbar/TB3.svg +1 -0
  139. package/examples/integration/tool/img/ic/toolbar/TB31.svg +1 -0
  140. package/examples/integration/tool/img/ic/toolbar/TB32.svg +57 -0
  141. package/examples/integration/tool/img/ic/toolbar/TB4.svg +1 -0
  142. package/examples/integration/tool/img/ic/toolbar/TB5.svg +1 -0
  143. package/examples/integration/tool/img/ic/toolbar/TB6.svg +1 -0
  144. package/examples/integration/tool/img/ic/toolbar/TB7.svg +1 -0
  145. package/examples/integration/tool/img/ic/toolbar/TB8.svg +1 -0
  146. package/examples/integration/tool/img/ic/tools.svg +28 -0
  147. package/examples/integration/tool/img/ic/user.svg +1 -0
  148. package/examples/integration/tool/img/ic/vector-polygon.svg +1 -0
  149. package/examples/integration/tool/img/ic/visit_manager.svg +135 -0
  150. package/examples/integration/tool/img/logo-footer-login.png +0 -0
  151. package/examples/integration/tool/img/logo-footer.png +0 -0
  152. package/examples/integration/tool/img/logo-header-login.png +0 -0
  153. package/examples/integration/tool/img/logo-header-login@2x.png +0 -0
  154. package/examples/integration/tool/img/logo-header-login@3x.png +0 -0
  155. package/examples/integration/tool/img/logo-header.png +0 -0
  156. package/examples/integration/tool/img/logo-header@2x.png +0 -0
  157. package/examples/integration/tool/img/logo-header@3x.png +0 -0
  158. package/examples/integration/tool/img/logo_project.png +0 -0
  159. package/examples/integration/tool/img/photo-gallery-placeholder.svg +3 -0
  160. package/examples/integration/tool/img/pixel.png +0 -0
  161. package/examples/integration/tool/index.html +228 -0
  162. package/examples/integration/tool/js/demo.js +238 -0
  163. package/examples/integration/tool/js/interface.js +147 -0
  164. package/examples/integration/tool/js/jquery.js +4 -0
  165. package/examples/integration/vanguardia.html +6636 -0
  166. package/examples/multipleIframes/index.js +82 -0
  167. package/examples/multipleIframes/index.php +52 -0
  168. package/examples/serverLess/dist/index.23420cfa.js +120 -117
  169. package/examples/serverLess/dist/index.23420cfa.js.map +1 -1
  170. package/examples/serverLess/dist/index.html +38 -1
  171. package/examples/serverLess/index.html +2 -1
  172. package/examples/serverLess/main.js +2 -2
  173. package/examples/simple/index.html +1 -1
  174. package/examples/taigua/index.html +15 -0
  175. package/examples/taigua/main.js +44 -0
  176. package/examples/vidromap/index.js +12 -79
  177. package/examples/vidromap/index.php +63 -48
  178. package/examples/xavi/index.html +37 -0
  179. package/examples/xavi/main.js +160 -0
  180. package/flows.md +73 -0
  181. package/package.json +1 -1
  182. package/src/index.js +160 -44
  183. package/src/shared/iframe-communicator.js +12 -5
  184. package/examples/vidromap/vidromap.js +0 -13
  185. package/examples/vidromap/vidromap.php +0 -59
@@ -0,0 +1,142 @@
1
+ // main: style.scss
2
+
3
+ .forms-area{
4
+ position: absolute;
5
+ right: 0;
6
+ top: 0;
7
+ bottom: 0;
8
+ overflow: hidden;
9
+ left: 0;
10
+ pointer-events: none;
11
+ }
12
+
13
+ .bottom-sheet{
14
+ width: 470px;
15
+ max-width: 100%;
16
+ overflow: hidden;
17
+ font-size: 12px;
18
+ position: absolute;
19
+ top: 60px;
20
+ right: 0;
21
+ background-color: #f5f5f5;
22
+ transform: translateX(100%);
23
+ transition: all .5s cubic-bezier(0.4, 0, 0.2, 1);
24
+ pointer-events: auto;
25
+ height: calc(100% - 60px);
26
+
27
+ &.visible{
28
+ transform: translateX(0px);
29
+ box-shadow: 0 0 19px 0 rgba(0, 0, 0, 0.5);
30
+
31
+ &.with-side-tools-open{
32
+ max-width: calc(100% - 60px);
33
+ @media (max-width: 700px){
34
+ transform: translateX(-60px);
35
+ }
36
+ }
37
+ }
38
+
39
+ .title{
40
+ color: $color-text;
41
+ padding: 5px 17px;
42
+ font-size: 13px;
43
+ font-weight: bold;
44
+ background-color: #dadad9;
45
+ text-transform: uppercase;
46
+ border-bottom: 1px solid white;
47
+
48
+ span, img{
49
+ vertical-align: middle;
50
+ }
51
+ }
52
+
53
+ .padded{
54
+ padding: 10px 20px;
55
+
56
+ &.border-top{
57
+ border-top: 1px solid $color-accent;
58
+ }
59
+ }
60
+
61
+ .scrollable_content{
62
+ max-height: calc(100% - 80px);
63
+ bottom: 0;
64
+ overflow-y: scroll;
65
+ p{
66
+ margin-top: .5em;
67
+ margin-bottom: .5em;
68
+ }
69
+ }
70
+
71
+ .visit-info{
72
+ background-color: white;
73
+ padding: 1em 1.5em;
74
+ border-bottom: 1px solid $color-accent;
75
+ }
76
+
77
+ .feature{
78
+ overflow: auto;
79
+ display: flex;
80
+ margin: 3px 0;
81
+
82
+ .fieldname{
83
+ flex-shrink: 1;
84
+ flex-grow: 1;
85
+ overflow: hidden;
86
+ }
87
+
88
+ .actions{
89
+ flex-shrink: 0;
90
+ flex-grow: 0;
91
+ button{
92
+ margin-right: 0;
93
+ }
94
+
95
+ .update-group{
96
+ input{
97
+ font-size: 12px;
98
+ padding: 4px;
99
+ border: none;
100
+ width: 60px;
101
+ margin: 0;
102
+ vertical-align: middle;
103
+ &:focus{
104
+ outline: none;
105
+ box-shadow: none;
106
+ }
107
+
108
+ }
109
+ button{
110
+ margin: 0;
111
+ padding: 0;
112
+ border-radius: 0;
113
+ vertical-align: middle;
114
+ img{
115
+ display: block;
116
+ }
117
+ }
118
+ }
119
+ }
120
+ }
121
+
122
+ .note{
123
+ padding: 1em 1.5em;
124
+ border-bottom: 1px solid $color-accent;
125
+ }
126
+
127
+ .label{
128
+ display: block;
129
+ color: $color-text;
130
+ font-weight: bold;
131
+ }
132
+
133
+ span.text-dimmed{
134
+ color: $color-menu-text-dimmed;
135
+ }
136
+ }
137
+
138
+ @media (max-width: 600px){
139
+ .bottom-sheet{
140
+ width: 100%;
141
+ }
142
+ }
@@ -0,0 +1,35 @@
1
+ // main: style.scss
2
+ $color-header-login: #dadad9;
3
+ $color-header-common: #dadad9;
4
+ $color-primary: #ffffff;
5
+ $color-accent: #005cb8;
6
+ $color-text: #1c1c1b;
7
+ $color-menu-bg: transparentize($color-primary, 0.2);
8
+ $color-tb-tool-selected: #004c99;
9
+
10
+ $color-menu-text-dimmed: #888888;
11
+
12
+ $color-btn-success: #00bfa5;
13
+ $color-btn-danger: #ff1744;
14
+ $color-btn-default: #8b8b8b;
15
+ $color-btn-default-light: #dadad9;
16
+ $color-btn-accent: $color-accent;
17
+
18
+ $color-menu-background: #FFFFFF;
19
+ $color-menu-text: $color-text;
20
+ $color-menu-item-active: #dadad9;
21
+ $color-menu-dropdown-background: #f5f5f5;
22
+ $color-menu-item-divider: #e9e9e9;
23
+ /* separator lines between buttons */
24
+ $color-ul-tools-first: #004387;
25
+ $color-ul-tools-last: #5292CE;
26
+ /* end separator lines between buttons */
27
+
28
+ /* mobile tools background color */
29
+ $color-menu-tools-mobile-background: $color-accent;
30
+ $color-menu-tools-mobile-scrollbar: #003a75;
31
+ /* end mobile tools background color */
32
+ /* map backgound color */
33
+ $map-background-color: white;
34
+ /* attributes table */
35
+ $selectedRowColor: #5292CE;
@@ -0,0 +1,167 @@
1
+ //main: style.scss
2
+
3
+ .drop-down-form{
4
+ display: flex;
5
+ flex-direction: column;
6
+ width: 350px;
7
+ min-width: 320px;
8
+ max-width: 100%;
9
+ overflow: hidden;
10
+ font-size: 12px;
11
+ // Needs this !important because of the jQuery UI resize.
12
+ position: absolute !important;
13
+ left: auto !important;
14
+ top: $header-height-mobile;
15
+ right: 0;
16
+ bottom: 0;
17
+ max-height: 100%;
18
+ background-color: #f5f5f5;
19
+ transform: translateX(calc(100% + 20px)); // 100 panel + 20px shadow
20
+ transition: transform .5s cubic-bezier(0.4, 0, 0.2, 1);
21
+ pointer-events: auto;
22
+ box-shadow: 0 0 19px 0 rgba(0, 0, 0, 0.5);
23
+
24
+ @include only-desktop{
25
+ top: $header-height-desktop;
26
+ }
27
+
28
+ &.visible{
29
+ transform: translateX(0px);
30
+
31
+ &.with-side-tools-open{
32
+ max-width: calc(100% - 60px);
33
+ @media (max-width: 700px){
34
+ transform: translateX(-60px);
35
+ }
36
+ }
37
+ }
38
+
39
+ > .header{
40
+ .title{
41
+ display: flex;
42
+ flex-direction: row;
43
+ align-items: center;
44
+ color: $color-text;
45
+ padding: 5px 7px;
46
+ font-size: 13px;
47
+ font-weight: bold;
48
+ background-color: #dadad9;
49
+ text-transform: uppercase;
50
+ border-bottom: 1px solid #adadad;
51
+
52
+ > .ico-area{
53
+ > img,
54
+ > svg{
55
+ display: block;
56
+ margin-right: 5px;
57
+ width: 20px;
58
+ height: 20px;
59
+ }
60
+ }
61
+ > span.title-area{
62
+ flex-grow: 1;
63
+ flex-shrink: 1;
64
+ text-overflow: ellipsis;
65
+ overflow: hidden;
66
+ white-space: nowrap;
67
+ }
68
+ > .buttons-area{
69
+ line-height: 0;
70
+ flex-shrink: 0;
71
+
72
+ button{
73
+ padding: 0;
74
+ background: none;
75
+ border: none;
76
+ margin-left: 5px;
77
+
78
+ img{
79
+ display: block;
80
+ }
81
+ }
82
+ }
83
+ }
84
+
85
+ .tabs{
86
+ ul{
87
+ list-style: none;
88
+ margin: 0;
89
+ padding: 0;
90
+ display: flex;
91
+ flex-flow: row;
92
+ }
93
+ li{
94
+ flex-grow: 1;
95
+ flex-shrink: 1;
96
+ flex-basis: 0;
97
+ min-width: 0;
98
+ border-bottom: 1px solid #adadad;
99
+ transition: all .3s;
100
+
101
+ &:not(:last-child){
102
+ border-right: 1px solid #adadad;
103
+ }
104
+
105
+ &.active{
106
+ border-bottom: 1px solid transparent;
107
+ }
108
+
109
+ }
110
+
111
+ li.active button{
112
+ outline: none;
113
+ background-color: #f5f5f5;
114
+ border: 1px solid white;
115
+ border-bottom: 1px solid transparent;
116
+ }
117
+
118
+ button{
119
+ @include ellipsize;
120
+ background: none;
121
+ border: none;
122
+ display: block;
123
+ width: 100%;
124
+ border-radius: 0;
125
+ font-size: 13px;
126
+ font-weight: bold;
127
+ letter-spacing: -0.5px;
128
+ color: #1c1c1b;
129
+ padding: 8px 3px;
130
+ background-color: #e9e9e9;
131
+ cursor: pointer;
132
+ border: 1px solid transparent;
133
+ transition: all .3s;
134
+
135
+ &:active,
136
+ &:focus{
137
+ outline: none;
138
+ }
139
+ }
140
+
141
+ }
142
+ }
143
+
144
+ > .content{
145
+ padding: 15px 25px;
146
+ overflow-y: scroll;
147
+ overflow-x: hidden;
148
+
149
+ // flex-grow: 1; // Uncomment this lines to let the footer
150
+ // flex-shrink: 1; // at the bottom of the window
151
+
152
+ .tab-content:not(:first-child){
153
+ display: none;
154
+ }
155
+ }
156
+
157
+ > .footer{
158
+ z-index: 1; // Draw the shadow over the .content
159
+ padding: 15px 25px;
160
+ box-shadow:
161
+ 0 -1px 0 0 #FFF,
162
+ 0 -2px 0 0 #e5e5e5,
163
+ 0 1px 0 0 #e5e5e5,
164
+ 0 2px 0 0 #FFF;
165
+ }
166
+
167
+ }