Skip to content

Commit

Permalink
fix debug page for safari/firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
Molly Lloyd committed Sep 29, 2017
1 parent 18abf53 commit 3718abc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions debug/terrain-rendering.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,12 @@
transformRequest: (url, resourceType) =>{
if (resourceType === 'Tile' && url.search('terrain')) {
return {
url: url.replace('@2x.webp', '.pngraw')
url: url.replace('@2x', '').replace(/(\.webp)|(\.png)/, '.pngraw')
};
}
}
});
map.on('load', ()=> {
map.setLight({position: [1.15, 225, 30]});
// map.addSource('rasterTerrain',
// {
// "type": "raster-terrain",
Expand Down

0 comments on commit 3718abc

Please sign in to comment.