forked from organicmaps/organicmaps
Set default pin-color if no any "styleUrl" in kml.
This commit is contained in:
parent
161a93dd31
commit
182f784678
1 changed files with 8 additions and 1 deletions
|
@ -166,13 +166,20 @@ namespace bookmark_impl
|
|||
}
|
||||
|
||||
bool MakeValid()
|
||||
{
|
||||
{
|
||||
if (MercatorBounds::ValidX(m_org.x) && MercatorBounds::ValidY(m_org.y))
|
||||
{
|
||||
// set default name
|
||||
if (m_name.empty())
|
||||
m_name = PointToString(m_org);
|
||||
|
||||
// set default pin
|
||||
if (m_type.empty())
|
||||
m_type = "placemark-red";
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue