Created
January 22, 2016 15:35
-
-
Save tristen/5e32d0be63d5c119aeb6 to your computer and use it in GitHub Desktop.
mapbox-gl-js v0.12.3 rendering bug
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset='utf-8' /> | |
| <title></title> | |
| <meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' /> | |
| <script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.12.3/mapbox-gl.js'></script> | |
| <link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.12.3/mapbox-gl.css' rel='stylesheet' /> | |
| <style> | |
| body { margin:0; padding:0; } | |
| body * { | |
| -webkit-touch-callout:none; | |
| -webkit-user-select:none; | |
| -khtml-user-select:none; | |
| -moz-user-select:none; | |
| -ms-user-select:none; | |
| user-select:none; | |
| } | |
| .map { position:absolute; top:0; bottom:0; width:100%; } | |
| .mapboxgl-ctrl.mapboxgl-ctrl-attrib { background-color:rgba(0,0,0,0.5); } | |
| .mapboxgl-ctrl.mapboxgl-ctrl-attrib a { color:#fff; } | |
| </style> | |
| </head> | |
| <body> | |
| <div id='map' class='map'></div> | |
| <div class='pin-bottomleft pad1'> | |
| <a target='_blank' href='http://www.mapbox.com/'><img src='mb.svg' alt='' /></a> | |
| </div> | |
| <script> | |
| mapboxgl.accessToken = 'pk.eyJ1IjoidmlsbGVkYSIsImEiOiJNY2hHRXVrIn0.epqbDBYitFBInieZNLLiWw'; | |
| var map = new mapboxgl.Map({ | |
| container: 'map', | |
| style: 'mapbox://styles/villeda/cijospleq0000ajks8sstxasy', | |
| center: [-77.948, 38.143], | |
| zoom: 5.5, | |
| minZoom: 5, | |
| maxZoom: 8 | |
| }); | |
| </script> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment