Closed napakalas closed 9 months ago
adding more functions to access annotation/feature's attributes:
This all seems more detailed than necessary: Why isFC()
when an external user can test .options.style === 'fcdiagram'
? Why a lot of getAnnotation*(featureId)
methods when a single getAnnotation(featureId)
would do to get all properties in a single structure?
More generally, what is the intended use of exposing these properties? Describing them as annotation
may be attaching more weight to what they are in the context of drawing external legends and controls.
Yes, .options.style === 'fcdiagram'
is sufficient for external users. I was just thinking of providing an interface that is easy to spot from the function name. But since they are familiar with mapviewer, I understand that isFC
is unnecessary.
For getAnnotation*
, the motivation is the same as isFC
, I agree that it is too detailed and is already represented by annotation()
. What hasn't been shown yet is the status
, i.e. {active:true, annotated:true}
. If needed, I can add it in annotation()
.
Adding three functions to FlatMap class
getPathFilters()
getLayerFilters()
getFC()
Ignore changes in main.js. Those are for testing purpose.