diff --git a/platform/node/src/node_map.cpp b/platform/node/src/node_map.cpp index 601cda81b..03a1cbe1d 100644 --- a/platform/node/src/node_map.cpp +++ b/platform/node/src/node_map.cpp @@ -642,7 +642,7 @@ void NodeMap::cancel() { map = std::make_unique(*frontend, mapObserver, mbgl::MapOptions().withSize(frontend->getSize()) .withPixelRatio(pixelRatio) - .withMapMode(mbgl::MapMode::Static) + .withMapMode(mode) .withCrossSourceCollisions(crossSourceCollisions), mbgl::ResourceOptions().withPlatformContext(reinterpret_cast(this)), mbgl::ClientOptions()); @@ -1421,7 +1421,7 @@ NodeMap::NodeMap(v8::Local options) , map(std::make_unique(*frontend, mapObserver, mbgl::MapOptions().withSize(frontend->getSize()) .withPixelRatio(pixelRatio) - .withMapMode(mbgl::MapMode::Static) + .withMapMode(mode) .withCrossSourceCollisions(crossSourceCollisions), mbgl::ResourceOptions().withPlatformContext(reinterpret_cast(this)), mbgl::ClientOptions()))