This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map.on('style.load', function() { | |
const treesLayerId = map.style._order.find((id) => map.style.getLayer(id).type === 'model' && id.startsWith("trees")); | |
if (treesLayerId) { | |
map.setLayoutProperty(treesLayerId, 'visibility', 'none'); | |
} | |
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This query looks for nodes, ways and relations | |
with the given key. | |
Choose your region and hit the Run button above! | |
*/ | |
[out:json][timeout:25]; | |
// gather results | |
( | |
// query part for: “"building:part"=*” | |
node["building:part"]({{bbox}}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/render/painter.js b/src/render/painter.js | |
index 55fabcf62..4cb3fdeb1 100644 | |
--- a/src/render/painter.js | |
+++ b/src/render/painter.js | |
@@ -645,7 +645,7 @@ class Painter { | |
const key = `${name}${programConfiguration ? programConfiguration.cacheKey : ''}${this._showOverdrawInspector ? '/overdraw' : ''} | |
${terrain ? '/terrain' : ''}${rtt ? '/rtt' : ''}`; | |
if (!this.cache[key]) { | |
- this.cache[key] = new Program(this.context, shaders[name], programConfiguration, programUniforms[name], this._showOverdrawInspector, terrain, rtt); | |
+ this.cache[key] = new Program(this.context, shaders[name], programConfiguration, programUniforms[name], this._showOverdrawInspector, terrain, rtt, name === 'terrainRaster'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/source/raster_dem_tile_source.js b/src/source/raster_dem_tile_source.js | |
index 1937a103d..e7c6cafc2 100644 | |
--- a/src/source/raster_dem_tile_source.js | |
+++ b/src/source/raster_dem_tile_source.js | |
@@ -55,7 +55,10 @@ class RasterDEMTileSource extends RasterTileSource implements Source { | |
delete (img: any).cacheControl; | |
delete (img: any).expires; | |
+ const t = performance.now(); | |
const rawImageData = browser.getImageData(img); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/mbgl/gl/program.hpp b/src/mbgl/gl/program.hpp | |
index 3757c442d..9d4eb7c24 100644 | |
--- a/src/mbgl/gl/program.hpp | |
+++ b/src/mbgl/gl/program.hpp | |
@@ -23,6 +23,8 @@ | |
#include <string> | |
+#import <QuartzCore/QuartzCore.h> | |
+ |
NewerOlder