You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update default CS and Projection for layer- (#854)
* change default cs from pcrs to gcrs
* update index to use default cs
* default layer projection to map's projection when map-meta projection not present for layer
* Add test to ensure a layer without any map-meta gets rendered
* update _getnativeVariables to support query inputs
* Provide map-meta in map-extent shadowRoots to give respect to mapml document' metadata + fix zoom to here link for query
* Add bug fix for empty getFeatureInfo
* Add map-feature._groupEl._feature property, which will allow code to
navigate from focused on-screen element in shadow root to custom element
(_groupEl already allows code navigation to SD-rendered content)
Add test leveraging <g>._feature property to verify rendering of default
coordinate system geometries.
* Remove cs="gcrs" and <map-meta name="projection" content="OSMTILE">
because they are the defaults / fallback values when not explicitly
marked up.
* update test to use default projection and CS, remove cs="gcrs", map-meta name="cs" content="gcrs" and map-meta name="projection" content="OSMTILE"
Revert "Remove cs="gcrs" and <map-meta name="projection" content="OSMTILE"> "
This reverts commit 3be3684.
update test to use default projection and CS
* preserve map-metas in map-extent shadowroot when paginating
* make statement fail-proof
* Revert Add map-feature._groupEl._feature property. Will integrate (better) changes when we've resolved 'createmap' dilemma.
* Add default projection (OSMTILE) + remove use of 'createmap' events
* Revert "Add default projection (OSMTILE) + remove use of 'createmap' events"
This reverts commit ca9399d.
* fix small bug with remote layer with no map-metas + Add tests
* bug fix after merging upstream
---------
Co-authored-by: prushfor <[email protected]>
// default projection set to parent projection when no map-meta projection element present
1456
+
projection=layer.options.mapprojection;
1457
+
projectionMatch=true;
1458
+
serverMeta=projection;
1459
+
console.log(
1460
+
`A projection was not assigned to the '${layer._title}' Layer. Please specify a projection for that layer using a map-meta element. See more here - https://maps4html.org/web-map-doc/docs/elements/meta/`
0 commit comments