| 195 | } |
| 196 | |
| 197 | LocationDependentData::property_t |
| 198 | LocationDependentData::FindByKey(const std::vector<std::size_t> &property_indexes, |
| 199 | const char *key) const |
| 200 | { |
| 201 | for (auto index : property_indexes) |
| 202 | { |
| 203 | const auto &polygon_properties = properties[index]; |
| 204 | const auto it = polygon_properties.find(key); |
| 205 | if (it != polygon_properties.end()) |
| 206 | { |
| 207 | return it->second; |
| 208 | } |
| 209 | } |
| 210 | return property_t{}; |
| 211 | } |
| 212 | |
| 213 | std::vector<std::size_t> LocationDependentData::GetPropertyIndexes(const point_t &point) const |
| 214 | { |