Skip to content
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

vectorserverUrl layers not working #50

Open
majid-saeed opened this issue Jun 6, 2024 · 0 comments
Open

vectorserverUrl layers not working #50

majid-saeed opened this issue Jun 6, 2024 · 0 comments

Comments

@majid-saeed
Copy link

I am trying to get a print/image by using a simple vectorserver layer with style.json
getting different behaviors
if I enable the renderToHtml it gives the correct layer and renders fines.

but disabling it gives the timeout and its linked with rendering.
first of all the Puppeteer throws CORS errors, disabled it with
'--disable-web-security', '--disable-features=IsolateOrigins,site-per-process'

then it throws
PAGE LOG: [.WebGL-0x6f00048b100]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels

which is because of rendering, cant disable the WebGL because its being used for map rendering.

can test it with
http://localhost:3000/?geojson=[{"type":"Feature","properties":{"party":"Republican"},"geometry":{"type":"Polygon","coordinates":[[[-104.05,48.99],[-97.22,48.98],[-96.58,45.94],[-104.03,45.94],[-104.05,48.99]]]}},{"type":"Feature","properties":{"party":"Democrat"},"geometry":{"type":"Polygon","coordinates":[[[-109.05,41.00],[-102.06,40.99],[-102.03,36.99],[-109.04,36.99],[-109.05,41.00]]]}}]&vectorserverUrl=https://api.maptiler.com/maps/topo/style.json?key=gbetYLSD5vR8MdtZ88AQ&height=200&width=200&zoom=20&center=-74.0060,40.7128&timeout=1200000&scale=false&markerIconOptions=false&style=false&oxipng=true

removed the token.

if you add renderToHtml then it gives the correct page.

tested with node v18, v16, v12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant