martindholmes / BreezeMap

BreezeMap is a project to create a simple user interface for interactive map and facsimile editing based on TEI XML and OpenLayers 4+.
MIT License
11 stars 3 forks source link

We need a way to prevent specific places (or categories?) from showing on the menu #36

Closed martindholmes closed 3 years ago

martindholmes commented 3 years ago

In real-life mapping scenarios, it turns out that you want to display certain features when (for example) stepping through a timeline, because they're helpful in elucidating what is happening as the timeline progresses, but they make no sense as menu items in the taxonomy/category menu. A simple mechanism in the XML such as @type="noMenu" on the place element could be carried over into the JSON as a "noMenu": true property, which would then cause the HolLayer object to ignore them when constructing the menu. We could also have a similar setting for an entire category, but that seems less useful.

martindholmes commented 3 years ago

Completed in commit # 6191464.