Set default pin-color if no any "styleUrl" in kml.

This commit is contained in:
vng 2013-01-03 19:14:14 +03:00 committed by Alex Zolotarev
parent 161a93dd31
commit 182f784678

View file

@ -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;
}