Commit d9917d3
Peter Rushforth
Add map-tile element
layer.js - no longer tests to see if the bounds have been previously calculated,
updates the _layer.bounds field whenever extent getter executes
- MapMLLayer usage refactored to use MapLayer per the element name association
- _validateDisabled method updated to account for replacement of StaticTileLayer by MapTileLayer
- replaced reliance of _validateDisabled on presence of properties such as
MapLayer['_staticTileLayer'] by using the array ['_staticTileLayer','_mapmlvectors','_extentLayer']
only as a driver of the loop used to validate that each child layer of the
LayerGroup's extent is enabled or not. the _mapmlvectors step is not completely
worked out, will get done in subsequent work tbc...
map-extent.js - applied name refactoring required by renaming ExtentLayer.js to
MapExtentLayer.js
map-feature.js
- changed addFeature a bit. changes look ok tbd, but the whole dependence of map-feature.js
on MapFeatureLayer.createGeometry as a factory method for creating the geometry
as a Leaflet layer should be revisited and hopefully simplified. Why not just
construct a geometry via new Geometry?
- for the use case of a <map-feature> loaded via a <map-link>, created a group of
new methods, patterned after/ copied from <map-tile>:
- _createOrGetFeatureLayer - runs conditional on the feature being loaded as
part of <map-link> processing. Called during connectedCallback
- isFirst - determines if this element is the first such element in a sequence
of elements named the same i.e. map-feature. If it is, used by
_createOrGetFeatureLayer to construct a FeatureLayeer constructed
as a holder for features that are constructed and removed with each
map movement.
- getPrevious - returns the previous sibling element of the <map-feature> with no checks
as to what kind of element it is. The notion is that it's only called when
isFirst returns false, so the returned sibling element is guaranteed to be a map-feature
(well, isFirst tests the name such that it must be equal to the name of this node,
which in this case is map-feature).
map-link.js - imports and constructs the newly refactored TemplatedFeaturesOrTilesLayer instead
of only TemplatedFeaturesLayer
map-select.js - changed a comment that mentioned MapMLLayer
map-tile.js - new.
mapml-viewer.js - imports and defines the map-tile element and HTMLTileElement interface
LayerControl.js - udpated a comment that referred to MapMLLayer
AnnounceMovement.js updated a comment that referred to MapMLLayer
index.js - imports and defines the map-tile element and HTMLTileElement interface from mapml-viewer.js
ExtentLayer.js - renamed to MapExtentLayer.js
FeatureLayer.js - updated a comment that referred to MapMLLayer
MapFeatureLayer.js - new. not used yet
MapLayer.js - refactoring of MapMLLayer.js:
- adds getContainer public method
- in onAdd, removes addition of static tile layer to LayerGroup
- removes the use of MapMLLayer['_staticTileLayer'], replaces with using the
string '_staticTileLayer' as a key to determine action to be taken in the
bounds calculation loop
- removes the processTiles construction method
MapTileLayer.js - new. Replaces StaticTileLayer.
TemplatedFeaturesOrTilesLayer.js - new. replaces TemplatedFeaturesLayer, since
we now support <map-tile> in template processing response documents.
TemplatedTileLayer.js - updated to support vector tiles that contain <map-tile>
elements.
map-bounding-box.test.js - add waitForTimeout to overcome flakiness.
drag.test.js - replace detection of class that was renamed / removed when StaticTileLayer was
eliminated
missingMetaParameters.html - add comment to clarify intent to future me
map-link-media.html - remove use of external resource, replace with content from test data
featureLayer.test.js - udpate comment mentioning MapMLLayer to MapLayer
multipleExtents.test.js, multipleExtents.html - update to support new classes used by
features or tiles support in templated link. Modernize the test a bit to make
it more readable. Still an ugly large test.
staticTileLayer.test.js - update
templatedPMTilesCBMTILETest.html - added map-link for stylesheet module. Not sure why this
test was working previously, maybe I misunderstood, but I think it was a cut and
paste error.
templatedPMTilesMVTLayer.test.js - changed expectation that layer will not be disabled
to expect that layer WILL be disabled, because the particular layer didn't have
a stylesheet and so could never be enabled, despite multiple projections available
customTCRS.test.js - one test was using static tiles, updated to continue working
playwright.config.js - added global directive to ignore https errors. These were
causing intermittent problems with tests on work network.1 parent aee7323 commit d9917d3
File tree
35 files changed
+1861
-1194
lines changed- src
- mapml
- control
- handlers
- layers
- test
- e2e
- api/matchMedia
- core
- elements/map-link
- layers
- mapml-viewer
- layers
35 files changed
+1861
-1194
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | | - | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | | - | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
296 | 297 | | |
297 | 298 | | |
298 | 299 | | |
299 | | - | |
| 300 | + | |
300 | 301 | | |
301 | 302 | | |
302 | 303 | | |
| |||
333 | 334 | | |
334 | 335 | | |
335 | 336 | | |
336 | | - | |
| 337 | + | |
337 | 338 | | |
338 | 339 | | |
339 | 340 | | |
| |||
467 | 468 | | |
468 | 469 | | |
469 | 470 | | |
470 | | - | |
| 471 | + | |
471 | 472 | | |
472 | 473 | | |
473 | 474 | | |
| |||
633 | 634 | | |
634 | 635 | | |
635 | 636 | | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
636 | 650 | | |
637 | 651 | | |
638 | 652 | | |
| |||
671 | 685 | | |
672 | 686 | | |
673 | 687 | | |
674 | | - | |
675 | | - | |
| 688 | + | |
| 689 | + | |
676 | 690 | | |
677 | 691 | | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
678 | 697 | | |
679 | 698 | | |
680 | 699 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
| 266 | + | |
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
435 | | - | |
| 435 | + | |
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
180 | 182 | | |
181 | 183 | | |
182 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
183 | 188 | | |
184 | 189 | | |
185 | 190 | | |
| |||
256 | 261 | | |
257 | 262 | | |
258 | 263 | | |
259 | | - | |
260 | 264 | | |
261 | 265 | | |
262 | 266 | | |
263 | | - | |
264 | 267 | | |
265 | 268 | | |
| 269 | + | |
266 | 270 | | |
267 | 271 | | |
268 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
269 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
270 | 355 | | |
271 | 356 | | |
272 | 357 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
| 439 | + | |
| 440 | + | |
440 | 441 | | |
441 | 442 | | |
442 | 443 | | |
| |||
551 | 552 | | |
552 | 553 | | |
553 | 554 | | |
554 | | - | |
| 555 | + | |
| 556 | + | |
555 | 557 | | |
556 | 558 | | |
557 | 559 | | |
558 | 560 | | |
559 | | - | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
560 | 564 | | |
561 | 565 | | |
562 | 566 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments