Add dropdown to select map style
This commit is contained in:
@@ -411,7 +411,13 @@ void Map::setup() {
|
||||
|
||||
void Map::setStyleURL(const std::string &url) {
|
||||
// TODO: Make threadsafe.
|
||||
|
||||
// TODO fix this properly
|
||||
styleURL = url;
|
||||
if (async) {
|
||||
stop();
|
||||
start();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user