Commit d2e7ce4d authored by Lorenz Meier's avatar Lorenz Meier

Fix zoom levels in opmaplib

parent aa7b4b45
......@@ -352,13 +352,25 @@ namespace internals {
}
break;
case MapType::BingHybrid:
case MapType::BingMap:
case MapType::BingSatellite:
{
if(Projection()->Type()!="MercatorProjection")
{
SetProjection(new MercatorProjection());
}
maxzoom=19;
}
break;
default:
{
if(Projection()->Type()!="MercatorProjection")
{
SetProjection(new MercatorProjection());
maxzoom=21;
}
maxzoom=21;
}
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment