Closed RickMohr closed 9 years ago
-1.
The point feature on the bioswale model has proved useful in implementing advanced search, and I suspect will be useful in the future.
In terms of solving problem # 2 outlined above, I think the that their long-term fragility is not very significant, since I doubt we will accumulate a significant number of kinds of polygonal map features.
Here's our current class hierarchy:
This has (at least) two problems: 1)
Bioswale
has a point field which it doesn't want 2) When the tiler renders map feature markers it always includes bioswales, even when bioswale polygons are also being rendered in another layerPossible solutions to #2 include:
('Bioswale', 'RainGarden', ...)
I don't like those solutions because the code for rendering markers has to consider everything that isn't a marker, which is fragile over the long-term.
I propose instead introducing a
PointMapFeature
class, makingMapFeature
geometry-agnostic:Advantages:
MapFeature
is geometry-agnostic; point features are no longer specialtreemap_pointmapfeature
This would require a schema+data migration similar to this one but a bit more involved.