MCPcopy Create free account
hub / github.com/comaps/comaps / GetModifiedFeature

Method GetModifiedFeature

libs/editor/editable_feature_source.cpp:15–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15std::unique_ptr<FeatureType> EditableFeatureSource::GetModifiedFeature(uint32_t index) const
16{
17 osm::Editor & editor = osm::Editor::Instance();
18 auto const emo = editor.GetEditedFeature(FeatureID(m_handle.GetId(), index));
19 if (emo)
20 return FeatureType::CreateFromMapObject(*emo);
21 return {};
22}
23
24void EditableFeatureSource::ForEachAdditionalFeature(m2::RectD const & rect, int scale,
25 std::function<void(uint32_t)> const & fn) const

Callers

nothing calls this directly

Calls 3

GetEditedFeatureMethod · 0.80
FeatureIDClass · 0.50
GetIdMethod · 0.45

Tested by

no test coverage detected