mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-07 21:13:55 +00:00
Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
This commit is contained in:
30
search/editor_delegate.hpp
Normal file
30
search/editor_delegate.hpp
Normal file
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include "editor/osm_editor.hpp"
|
||||
|
||||
#include "indexer/editable_map_object.hpp"
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
class DataSource;
|
||||
|
||||
namespace search
|
||||
{
|
||||
class EditorDelegate : public osm::Editor::Delegate
|
||||
{
|
||||
public:
|
||||
EditorDelegate(DataSource const & dataSource);
|
||||
|
||||
// osm::Editor::Delegate overrides:
|
||||
MwmSet::MwmId GetMwmIdByMapName(std::string const & name) const override;
|
||||
std::unique_ptr<osm::EditableMapObject> GetOriginalMapObject(
|
||||
FeatureID const & fid) const override;
|
||||
std::string GetOriginalFeatureStreet(FeatureID const & fid) const override;
|
||||
void ForEachFeatureAtPoint(osm::Editor::FeatureTypeFn && fn,
|
||||
m2::PointD const & point) const override;
|
||||
|
||||
private:
|
||||
DataSource const & m_dataSource;
|
||||
};
|
||||
} // namespace search
|
||||
Reference in New Issue
Block a user