Commit 930b852
Develop <map-feature> custom element (#801)
* map-feature development
* add comments for intended zoom attribute behaviors
* fix bug of the click() method
* handle focus, modify default click() and focus() methods and tests
* fix bugs, make layer element reload if the src attribute is changed
* small fix, make focus not toggled and remove the current focus state when other element is set to focused
* Change context menu to copy location as a map-feature.
Change Util._pasteLayer to sniff for <map-feature, paste as a visible
layer.
* make elements in mapml file migrate at loading stage
* small fix, add comments
* fix issue 803
* map-feature development
* add comments for intended zoom attribute behaviors
* fix bug of the click() method
* handle focus, modify default click() and focus() methods and tests
* fix bugs, make layer element reload if the src attribute is changed
* small fix, make focus not toggled and remove the current focus state when other element is set to focused
* make elements in mapml file migrate at loading stage
* small fix, add comments
* fix issue 803
* Add states and cors support for development needs
* fix bug: err is thrown if making changes on <map-feature> when templated features exist in <layer- >
* fix bug when projection is changed: XHR twice and multiple copies of mapml is attached to shadow
* make map-properties can be interactively removed and added, change geojson format and rename the method
* modify tests
* rename get geojson method for consistency, add tests
* simplify focus method
* Revert "Add states and cors support for development needs"
This reverts commit 6afc79d.
* Revert "Change context menu to copy location as a map-feature. Change Util._pasteLayer to sniff for <map-feature, paste as a visible layer."
This reverts commit 99963c5.
* rename _featureLayer to _featureGroup for consistency
* create private methods that imply layer- element is removed and connected to DOM
* continue renaming
* add getMaxZoom() method
* zoomTo, paste, remove feature
* add support for setting event handlers via HTML and Script
* small fix
* Update src/map-feature.js
Co-authored-by: Aliyan Haq <[email protected]>
* Update src/map-feature.js
Co-authored-by: Aliyan Haq <[email protected]>
* bug fixing, refactoring, support for mapFeature.addEventListener
* fix bug that map-coordinates cannot be changed twice
* add zoom to link in popup, make a connection that allows the Leaflet layer to reference the corresponding Map feature element, and some small fix
* resolve failing tests
* zoomTo link bug fixing 1
* add min and max attributes, modify zoomTo method
* add 'options' parameter to focus() method
* close 821, localize zoom to here link in popup
* Add Man With Two Hats to index.html
* update outdated comment for mapml2geojson method
* bug fixing, add comments
* make _handlefocus only handle keyboardEvent
Co-authored-by: Aliyan Haq <[email protected]>
* make _handlefocus only handle keyboardEvent, cont.
Co-authored-by: Aliyan Haq <[email protected]>
* remove unnecessary _clampZoom in FeatureLayer.js
---------
Co-authored-by: prushfor <[email protected]>
Co-authored-by: Peter Rushforth <[email protected]>
Co-authored-by: Aliyan Haq <[email protected]>
Co-authored-by: AliyanH <[email protected]>1 parent fc0c8da commit 930b852
File tree
18 files changed
+2403
-123
lines changed- src
- mapml
- features
- layers
- utils
- test/e2e/core
18 files changed
+2403
-123
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
78 | 127 | | |
79 | 128 | | |
80 | 129 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | 15 | | |
30 | 16 | | |
31 | 17 | | |
| |||
82 | 68 | | |
83 | 69 | | |
84 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
85 | 75 | | |
86 | 76 | | |
87 | 77 | | |
| |||
90 | 80 | | |
91 | 81 | | |
92 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
93 | 87 | | |
| 88 | + | |
94 | 89 | | |
95 | 90 | | |
96 | 91 | | |
97 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| |||
108 | 110 | | |
109 | 111 | | |
110 | 112 | | |
| 113 | + | |
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
| |||
148 | 151 | | |
149 | 152 | | |
150 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
151 | 170 | | |
| 171 | + | |
152 | 172 | | |
153 | 173 | | |
154 | 174 | | |
| |||
327 | 347 | | |
328 | 348 | | |
329 | 349 | | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
335 | 354 | | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
368 | 358 | | |
369 | 359 | | |
370 | 360 | | |
371 | 361 | | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
372 | 376 | | |
0 commit comments