Comments (12)
After some trial and error I got it to work. It looks like in my case it was not working because I didn't install vmware tools, which includes a video driver with 3d support. The default microsoft basic video driver didn't work, but the vmware driver did.
Not working with microsoft basic driver
from tileserver-gl.
To use the Mesa3d software rendering you can try this.
1.) Download https://github.com/pal1000/mesa-dist-win/releases/download/22.3.5/mesa3d-22.3.5-release-msvc.7z
2.) extract the files 'opengl32.dll', 'libgallium_wgl.dll', 'libGLESv2.dll', 'libglapi.dll' into the maplibre-native lib folder at \node_modules\@maplibre\maplibre-gl-native\lib\node-(your node version)\
3.) set the windows environment variables. I set them in user variables, but system variables should also work
https://docs.mesa3d.org/envvars.html#envvar-GALLIUM_DRIVER
LIBGL_ALWAYS_SOFTWARE: true
GALLIUM_DRIVER: softpipe
4.) Make sure to restart your command prompt to get the new environment variables.
5.) Try to run "node ." and see if the page loads now.
from tileserver-gl.
It sounds like it is failing in places that uses maplibre-native rendering.
"https://localhost:8080/" uses maplibre-native to generate the thumnails for your style. "https://localhost/styles/basic-preview/1/0/1.png." uses maplibre-native to render your style+data sources into a rendered png.
502 (Bad Gateway) sounds like maplibre-native is having trouble connecting to the enpoint maybe?...idk
from tileserver-gl.
Did you install the latest c++ redistributable needed on windows? https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170
from tileserver-gl.
I tried it on server 2022 and experience the same thing. Strange. I'm guessing some dependency is missing but i'm not sure what it would be.
I have been running it fine on Windows 11 here in testing...I would imagine that is pretty similar.
from tileserver-gl.
Thank you for your assistance. The issue I'm facing is that I'm using Windows Server 2022 on RDP, and it's displaying "Microsoft Remote Display Adapter" and "Microsoft Basic Display Adapter." Now, should I download the SVGA 3D driver will work, or should I change the RDP graphics mode?
from tileserver-gl.
Seems to work fine over RDP, once the real video card is updated to an appropriate driver. What kind of server is this, is it a virtual server or a phsical server? Seems like you need to update the one that shows "Microsoft Basic Display Adapter." .
For a vmware virtual server, the updated driver with 3d support come as part of the vmware tools. If this isn't a virtual server, maybe run windows update and see if it pulls in a better driver that replaces the "Microsoft Basic Display Adapter." If this isn't vmware and windows update doesn't pull in a driver for you, you are going to need to find what video card your server uses and see if you can find a better driver for it.
from tileserver-gl.
If you can't find a better driver, it may be possible to use Mesa3d software rendering. I have not tested this with tileserver-gl, but I know we have used it when building maplibre-native in the github workflows, which does not have a real video card https://github.com/maplibre/maplibre-native/blob/main/.github/workflows/node-ci.yml#L262-L271 .
I would try the driver first, since there should be one you can use in most cases, but mesa3d could be an option if it is not. we would have to reseach how to do it, but it should mostly be extracting the dlls and possibly setting an environment variable like that step in the workflow does.
Basically the issue here is maplibre-native requires opengl support, which it doesn't seem the "Microsoft Basic Display Adapter." has.
from tileserver-gl.
ok I will give this a try, and I'll get back to you with the results
from tileserver-gl.
It worked perfectly; thank you so much for your assistance
from tileserver-gl.
Glad you got it working. did you go the fixing the driver route or the mesa3d software rendering route? If it is possible the upgrading the driver route is the better way to go, but at least there is an option.
from tileserver-gl.
I followed your instructions and used the mesa3d software, and it's working perfectly.
from tileserver-gl.
Related Issues (20)
- Latest arm64 Docker Image is broken HOT 15
- Tiles not rendering at certain zoom levels HOT 3
- Tileserver crashes/throws error in tile mode for certain pbf HOT 6
- broken docker image maptiler/tileserver-gl-light:v4.6.3 HOT 7
- Crashing tileserver-gl worker (docker, kernel trap) HOT 10
- firefox warning NS_BINDING_ABORTED in web developer tools network tab HOT 2
- Unit test cases for maptiler tileserver HOT 1
- min/maxRendererPoolSizes in config have no effect HOT 8
- Multiple mbtiles serving on tileserver-gl HOT 1
- maptiler-server & nginx proxy to a URL with sub-folder HOT 3
- Texts are cut off in raster maps and static maps HOT 5
- maxScaleFactor @4x and more does not work HOT 3
- Maptiler retaining Renderer after each process.
- Question about cache. Fast loading of tiles. HOT 1
- MBtiles data with static png images lead to erroneous URLs in index.json HOT 3
- Unhandled exception when pmtiles is used and GeoJSON is requested HOT 5
- Provided Tilejson file's "tiles" attribute uses "HTTP" instead of "HTTPS" HOT 3
- Add cache bust feature
- style paths with (null) in sources
- Serving multiple maps (.MBTiles) in th same server. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tileserver-gl.