|
10 | 10 | <div class="open-data--utility-control open-data--utility-control__add" v-on:click="updateMapLocations()">Update locations</div>
|
11 | 11 | <div class="open-data--utility-control open-data--utility-control__remove" v-on:click="removeAllMapLayers()">Remove locations</div>
|
12 | 12 | <div class="clearfix"></div>
|
| 13 | + <div class="open-data--utility-control-toggle" id="utility_control_panel_toggle"><div class="open-data--utility-control-toggle-arrow" v-on:click="toggleUtilityControls()">Toggle Controls</div> |
13 | 14 | </div>
|
14 |
| - <div class="open-data--utility-control-toggle"><div class="open-data--utility-control-toggle-arrow" v-on:click="toggleUtilityControls()"> |
| 15 | + |
15 | 16 | </div>
|
16 | 17 | <!--<div class="open-data--utility-control-toggle"><div class="open-data--utility-control-toggle-arrow" v-on:click="toggleUtilityControls()">V</div></div>-->
|
17 | 18 |
|
|
21 | 22 | <polygon class="arrow-middle" points="37.6,45.8 0.8,18.7 4.4,16.4 37.6,41.2 71.2,16.4 74.5,18.7 "/>
|
22 | 23 | <polygon class="arrow-bottom" points="37.6,64 0,36.1 5.1,32.8 37.6,56.8 70.4,32.8 75.5,36.1 "/>
|
23 | 24 | </svg>-->
|
24 |
| - </div></div> |
| 25 | + </div> |
25 | 26 | <div class="open-data--map-data--category-container">
|
26 |
| - <div class="open-data--selected-item" v-bind:style="selected_map_category.item_styles || {}" v-on:click="toggleMapLayer(selected_map_category)" v-for="(selected_map_category, index) in selectedGeoJsonData"> |
27 |
| - {{selected_map_category.name}} |
| 27 | + <div class="open-data--selected-items"> |
| 28 | + <div class="open-data--selected-item" v-bind:style="selected_map_category.item_styles || {}" v-on:click="toggleMapLayer(selected_map_category)" v-bind:key="selected_map_category.id" v-for="(selected_map_category, index) in selectedGeoJsonData"> |
| 29 | + {{selected_map_category.name}} |
| 30 | + </div> |
28 | 31 | </div>
|
29 | 32 | <input type="textbox" class="open-data--map-data--filter-input" v-model="filterTerm" v-on:keyup="filterMapCategories()" placeholder="Filter selection here..." id="map_data_filter_input"/>
|
30 | 33 | <div class="open-data--list-container">
|
|
202 | 205 | },
|
203 | 206 | toggleUtilityControls: function () {
|
204 | 207 | let control_panel = document.getElementById("utility_control_panel");
|
| 208 | + console.log("control panel", control_panel) |
205 | 209 | if (control_panel.className.includes("open-data--utility-control-panel__open")) {
|
206 | 210 | control_panel.classList.remove("open-data--utility-control-panel__open");
|
| 211 | +let control_panel_toggle = document.getElementById("utility_control_panel_toggle"); |
| 212 | +control_panel_toggle.style.display = "none"; |
207 | 213 | }
|
208 | 214 | else {
|
209 | 215 | control_panel.classList.add("open-data--utility-control-panel__open");
|
210 | 216 | }
|
| 217 | + |
211 | 218 | }
|
212 | 219 | },
|
213 |
| - updated: function () { |
214 |
| -
|
| 220 | + created() { |
| 221 | + console.log("y not tho"); |
| 222 | + this.$nextTick(function () { |
| 223 | + this.initializeMap(); |
| 224 | + }); |
215 | 225 | },
|
216 | 226 | name: "mapData",
|
217 | 227 | };
|
|
262 | 272 | padding: 5px;
|
263 | 273 | }
|
264 | 274 |
|
| 275 | + .open-data--selected-items { |
| 276 | + margin-top: 5px; |
| 277 | + } |
| 278 | +
|
265 | 279 | .open-data--name {
|
266 | 280 | text-overflow: ellipsis;
|
267 | 281 | }
|
|
291 | 305 |
|
292 | 306 | .open-data--list-container {
|
293 | 307 | border-bottom: 3px solid black;
|
| 308 | + border-top: #C3C3C3 1px solid; |
294 | 309 | height: 100%;
|
295 | 310 | margin-bottom: -50px;
|
| 311 | + margin-top: 30px; |
296 | 312 | position: relative;
|
297 | 313 | overflow: hidden;
|
298 | 314 | width: 100%;
|
|
361 | 377 | }
|
362 | 378 | .open-data--utility-control-panel {
|
363 | 379 | display: block;
|
364 |
| - height: 50px; |
| 380 | + height: 0; |
365 | 381 | overflow: hidden;
|
366 | 382 | position: relative;
|
367 | 383 | text-align: center;
|
|
0 commit comments