-
Notifications
You must be signed in to change notification settings - Fork 41
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
Dynamic Layer configuration - Wegue format #111
Comments
So, thanks for this @justb4. One general question: Is this all about "divide and conquer", so that we separate the |
@chrismayer : thanks for reaction. The requirement came from a real-world project where Vector data is managed within a CMS and unlocked via HTTP endpoints each providing a single GeoJSON Feature Collection. The "Collection of Collections" (like Capabilities) is defined in a single endpoint that returns an array of Wegue Layer JSON definitions. Now one could argue that it would be better to use an OGC standard like WFS or better OGC API Features ("WFS3"), but then you would also have define/manage Styles, icons and other resources within the Wegue frontend app, in a somehow generic fashion (as users can add new Layers/icons in CMS). Now all these can be managed in the CMS. The other use-case is a local "LayerList" JSON file as The mechanism within Wegue (need async fetching/axios), getting layer-list can be factored out later to support OGC Capabilities endpoints for WMS, WFS and WFS3, and why not ;-) ArcGIS Online endpoints...Did something similar in the past with GeoExt/GXP/Heron, even generate a LayerTree. Big issue was with WFS how to deal with Layer styling... |
The current way to configure Layers is to define these in the Wegue config file like
static/app-conf.json
.But there are scenario's where a remote server provides an API Endpoint that supplies a "Layer List". OGC Standard examples are WMS Capabilities documents. The GeoExt.tree.WMSCapabilitiesLoader is an example of a client that expands this to Layer objects.
And with the new OGC REST API an OpenAPI Feature "Collections" as a JSON doc, see example here.
These should be addressed in separate issues. The issue here suggests a more direct approach and format: as Wegue Layers are already JSON nodes, a remote endpoint (or local file under e.g.
static
) could provide an array of Wegue Layer definitions like:Such a Wegue Layer Def could be defined as a special Layer
type
with the endpoint URL and possibly some other parameters. Something at minimum:The text was updated successfully, but these errors were encountered: