diff options
-rw-r--r-- | platform/glfw/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/glfw/main.cpp b/platform/glfw/main.cpp index 3702b8aaab..997831cb77 100644 --- a/platform/glfw/main.cpp +++ b/platform/glfw/main.cpp @@ -66,7 +66,7 @@ int main(int argc, char *argv[]) { benchmark = true; break; case 's': - style = std::string("asset://") + std::string(optarg); + style = std::string(optarg); break; case 'x': longitude = atof(optarg); @@ -124,6 +124,10 @@ int main(int argc, char *argv[]) { backend.setMap(&map); + if (style.find("://") == std::string::npos) { + style = std::string("file://") + style; + } + // Load settings mbgl::Settings_JSON settings; |