Skip to content

Add <map-tile> to support principally GeoServer layer group processing #1033

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

prushforth
Copy link
Member

GeoServer will soon get support for processing layer groups in "vector tile" mode. That is, layers in a layer group referenced by a GetMap request will be able to be represented as vector information, except of course for natural raster layers embedded in the group. These layers will be rendered as sequences of <map-tile row="nnn" col="nnn" zoom="nn" src="GetMap or GetTile URL to an image"></map-tile>.

Currently <map-feature> elements that are found in response to a templated request, whether for an individual tile or for a single untiled GetMap, are added in order of parsing to a templatedFeaturesLayer hosted by the <map-link> that processes them.

This PR should enable a hosted templatedFeaturesOrTilesLayer (name uncertain) that integrates rendering of both <map-tile> and <map-feature>.

The design will evolve in the course of this PR :-)

Set up index.html with local geoserver spearfish layer to test map-tile
Change getElementsByTagName to querySelectorAll - probably will cause
test failures and needs to be thought out and refactored once map-tile
is complete

WIP on map-tile, TemplatedFeaturesOrTilesLayerGroup, map-link

WIP on map-tile, TemplatedFeaturesOrTilesLayerGroup, map-link

remove redundant method from TemplatedFeaturesOrTilesLayerGroup

WIP on map-tile, TemplatedFeaturesOrTilesLayerGroup, map-link

remove redundant method from TemplatedFeaturesOrTilesLayerGroup

Comment out CI

Hopefully disable CI by temporarily removing ci-testing.yml

Add templates parameter to TemplatedFeaturesOrTilesLayerGroup (TFOTLG)

Add provisional / draft implementation of moveend handler for TFOTLG,
based on simplified version of that from TemplatedFeaturesLayer source
Exclude handling of <map-feature> for the moment to get things working
incrementally, maybe.
Add a hard-coded isVisible() implementation that returns true for the moment
Add some code to onAdd and onRemove Layer method overrides
Add provisional _setUpTemplateVars function

Get rendering of map-tile kinda working.

Save some work from today hopefully without breaking stuff

Delete MapFeatureLayerGroup.js - only need FeatureLayer.js I hope
Keep similar code between map-feature.js and map-tile.js in sync

Fix missed isFirst / getPrevious method reconciliation between map-tile
and map-feature
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant