Feature tag value evaluator for tag 'bbox_area' (bounding box area in sq.meters)
| 167 | |
| 168 | // Feature tag value evaluator for tag 'bbox_area' (bounding box area in sq.meters) |
| 169 | bool GetBoundingBoxArea(FeatureType & ft, int zoom, double & sqM) |
| 170 | { |
| 171 | if (feature::GeomType::Area != ft.GetGeomType()) |
| 172 | return false; |
| 173 | |
| 174 | // https://github.com/organicmaps/organicmaps/issues/2840 |
| 175 | sqM = mercator::AreaOnEarth(ft.GetLimitRect(zoom)); |
| 176 | return true; |
| 177 | } |
| 178 | } // namespace |
| 179 | |
| 180 | unique_ptr<ISelector> ParseSelector(string const & str) |
nothing calls this directly
no test coverage detected