bcgov / smk-cli

The Command Line Interface enables users to rapidly create and edit SMK map configuration, including data consumption via OGC and Esri ReST data access services and local data files.
https://bcgov.github.io/smk-cli
Apache License 2.0
5 stars 3 forks source link

No error attempting to load catalog in empty layers directory #67

Closed michaelpnelson closed 3 years ago

michaelpnelson commented 3 years ago

When a user navigates to Layers/Manage Vector Layers and the layers catalog is missing, a "No catalog at ..." error is displayed and logged. However, if no layers have been imported, no catalog will have been created, and this error is inappropriate.

This change updates catalogs.js functionality for getting the local catalog. When the layers directory is empty, we no longer give an error, and we log a message saying that the layers directory is empty and we are skipping getting the local catalog.