ngageoint / opensphere

OpenSphere
Apache License 2.0
185 stars 90 forks source link

fix(state): only include remote layers in state files #1402

Closed schmidtk closed 2 years ago

schmidtk commented 2 years ago

State files previously included any layer that didn't use a local:// or file:// scheme in their URL, or any layer that didn't define our canned set of properties (url and url2). This was causing layers added from a GeoPackage to be included because GPKG feature layers use the gpkg:// scheme and GPKG tile layers do not have a URL.

We will now determine if a layer should be included by:

If an application/plugin uses URL properties other than the above, they may register additional properties to check with registerLayerStateUrlProperty.