Limit tile zoomlevel to 12+

This commit is contained in:
Patrick Niklaus
2016-03-02 19:59:49 +01:00
parent 6d749777fc
commit 0eaa393065
3 changed files with 39 additions and 10 deletions
+20 -3
View File
@@ -144,8 +144,25 @@ void RouteParameters::SetCoordinatesFromGeometry(const std::string &geometry_str
coordinates = polylineDecode(geometry_string);
}
void RouteParameters::SetX(const int &x_) { x = x_; }
void RouteParameters::SetZ(const int &z_) { z = z_; }
void RouteParameters::SetY(const int &y_) { y = y_; }
bool RouteParameters::SetX(const int x_)
{
x = x_;
return true;
}
bool RouteParameters::SetZ(const int z_)
{
if (z_ < 12)
{
return false;
}
z = z_;
return true;
}
bool RouteParameters::SetY(const int y_)
{
y = y_;
return true;
}
}
}