-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Adding custom tilelayer #119
Comments
|
thank you for your help, the error is gone, however the tile layer is not rendering, i had a test static page using mapbox gl rendering the same tile layer which works fine, it;s something like this:
so I was throwing the same 'style' object into the react-map-gl as i did in the original post with Immutable js around it, but the tile didn;t render at all and there is no error, did i miss something obvious? I can see 200 for all my raster tiles over the network, and i assume they are all getting back fine, but it seems something is stopping it from show up in the canvas? |
the map just looks like a layer of light gray |
Can you post here the minimum code example that demonstrates the issue you're seeing? |
sorry, i made a stupid mistake, i didn't set the center and zoom correctly, as the map zoomed in very close in the middle of no where, so it looks like a gray screen, -__-! |
no worries. glad you figured it out! |
thanks again for your help, much appreciated :)) |
@Jinnified I'm trying this out get that my container is undefined. How did you get around this from happening. The container is a |
I wonder if react-map-gl can accept third-party tile layer? I was looking at adding a raster tile layer example on mapbox: https://www.mapbox.com/mapbox-gl-js/example/map-tiles/
so In the react-map-gl place when i configure the map, i have the following:
and provided this style to the react map gl
However, I am getting resource not found error
Failed to load resource: the server responded with a status of 404 (Not Found)
but this particular tilelayer works fine in my leaflet project.
any help would be appreciated
The text was updated successfully, but these errors were encountered: