mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 08:10:05 +00:00
enable having markers without names
This commit is contained in:
parent
5d8f3786de
commit
d8233a2c41
1 changed files with 7 additions and 10 deletions
|
|
@ -190,17 +190,14 @@ void MarkerManager::Impl::ReadMarkerSettings()
|
|||
{
|
||||
auto record = boost::json::value_to<MarkerRecord>(markerEntry);
|
||||
|
||||
if (!record.markerInfo_.name.empty())
|
||||
{
|
||||
types::MarkerId id = NewId();
|
||||
size_t index = markerRecords_.size();
|
||||
record.markerInfo_.id = id;
|
||||
markerRecords_.emplace_back(
|
||||
std::make_shared<MarkerRecord>(record.markerInfo_));
|
||||
idToIndex_.emplace(id, index);
|
||||
types::MarkerId id = NewId();
|
||||
size_t index = markerRecords_.size();
|
||||
record.markerInfo_.id = id;
|
||||
markerRecords_.emplace_back(
|
||||
std::make_shared<MarkerRecord>(record.markerInfo_));
|
||||
idToIndex_.emplace(id, index);
|
||||
|
||||
self_->add_icon(record.markerInfo_.iconName, true);
|
||||
}
|
||||
self_->add_icon(record.markerInfo_.iconName, true);
|
||||
}
|
||||
catch (const std::exception& ex)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue