-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map does not render unless pitch is set and map is "tilted" #2270
Comments
This might have been fixed by #1606 — can you verify with the master branch version? |
I can see this happening on one machine and not the other even with a fresh trunk build from an hour ago and v0.18.0 |
Very sorry, we don't have an in-house machine that replicates the bug. This was happening on a client's computer that I don't have access to without a visit. We did overcome the bug by setting the map pitch to an imperceptible 0.01. Hacky but did the trick. |
I found this issue trying to figure out why the Pokemon GO map shows up on my work machine, but most other mapbox-gl-js maps don't. As far as I can tell, I'm experiencing the same issue on my Windows 7 machine as @lsimkins: mapbox-gl-js maps only render when pitch > 0. When they don't render, there is no error in the console. I've run through many of the examples you all have just to check and pitch seems to be the common factor in determining whether or not the map renders. This is demonstrated in the GIF below taken from the interacting with the map in the example "Fly to a location based on scroll position" var chapters = {
'baker': {
bearing: 27,
center: [-0.15591514, 51.51830379],
zoom: 15.5,
pitch: 20
},
'aldgate': {
duration: 6000,
center: [-0.07571203, 51.51424049],
bearing: 150,
zoom: 15,
pitch: 0
},
... The map renders properly on load for the Follow OP's lead, here are my system and graphic specs: Display Information (Screenshot) I'm happy to hunt down any other information that might be helpful. This is the last real hurdle - beyond learning the thing - to us adopting mapbox-gl-js. Thanks! |
Hi, Is this issue already solved? |
Possibly! I'm going to close for now then, and reopen in case this is confirmed to still be an issue on 0.24. |
@mourner Sorry, but it is still an issue, with a colleagues computer with 0.24. |
I've tested this with 0.24 on Windows 7 and still have the same visibility issue. For what it's worth, I tried using mapbox-gl-js in an Ubuntu 14 virtual box running on the same Windows 7 machine and the library worked fine regardless of pitch. Would that not eliminate the graphics card as a contributing culprit? After reading the "Fall Cleaning" post it seems using mapbox-gl-js is going to be more and more essential to using Mapbox services. Certainly to get the most out of it! I'm afraid I don't know quite where to begin to try and figure out this bug, but if there's any information I can provide that would be helpful for fixing this, I am happy to run tests and hunt that info down. |
I'd just add that I had no joy with the graphics card updates and it failed in both Firefox and Chrome (latest v) on Windows 7.. I set the pitch to 1 [ mapgl.setPitch(1) ] and all was good. I added this during the mapgl.on('load', function(){}); |
This is still an issue for us with 0.28 on Windows 10 Chrome and Firefox. Edge and IE 11 don't have this problem. |
@jaapster I am still having the issue in IE 11. I've been poking around trying to see when this bug popped up. I looked through about 90 of Mapbox's 'bites' that used mapbox-gl-js to see if there was a time when this library worked where Survey Data: Each row in the survey includes the Bite number. To test out, you can use the URL string |
Due to this bug we cannot deploy for Windows platforms. Please please fix! |
I concur with @dannybloe. Something I noticed is that fill-extrusion layers are not affected by this problem. So while the 2D layers are invisible, the extrusions are visible while pitch === 0. |
While working on refactoring I have a feeling that it's the same bug, but it doesn't manifest on non-Windows machines with |
A temporary workaround that seems to fix rendering for all pitch values is to change |
Thanks @mourner, this workaround solves our immediate issues! |
We would also benefit from a quick permanent fix for this issue! Thanks ever so much. |
Submitted a #3740 with a potential permanent fix. Can you confirm that this hack works too? |
Mapbox does not render tiles unless map pitch is > 0 on certain Windows 7 systems. This may be related to #930 but in 930 the map was rendering. In this case, the map does not render anything at all until a pitch is set.
In the screenshots below, the rendering visible on the map is custom GL we've written and render on a separate canvas external to mapbox.
The same behavior also occurs across all mapbox-gl examples at https://www.mapbox.com/mapbox-gl-js/examples/
Map with no pitch set.
Map with pitch set to 60.
System Specs Screenshot (Processor)
System Specs Screenshot (Graphics Card)
mapbox-gl-js version: 0.15.0
Steps to Trigger Behavior
Expected Behavior
Map renders normally.
Actual Behavior
Map does not render unless tilted/pitched.
The text was updated successfully, but these errors were encountered: