-
-
Notifications
You must be signed in to change notification settings - Fork 401
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
localhost vector tiles support? #208
Comments
I know, but after add the source, I can not see the map. when zoom in/out, the chrome Network in Developer Tool can not capture request url. |
@cdqrain : some debugging tips:
|
This might be the http/https issue as described in #177. If you using You should see warnings in the browsers inspector |
@orangemug I use maputnik in my local machine, should I change the tile server from HTTP to HTTPS? |
@ImreSamu I serve the vector tile from .NET Core WebAPI, the URL MUST be ended with |
@cdqrain if maputnik is served locally over |
@orangemug But why maputnik can not request the source URL that I added? |
It'll probably be one of 2 things
As @ImreSamu suggested, console and network logs from the browsers inspector will help diagnose the issue |
@cdqrain :
Your vector tile URL should work from the browser or via wget. You can replace manually the z/x/y values in your url, and you can test - it is working or not. Sometimes it is a special link like
|
@ImreSamu The issue is maputnik can not initiate request the Vector Tiles. Chrome Network inspector is empty. |
Ok so a few more things that might help. Maputnik is really just a JSON editor so lets work backwards from that
|
@orangemug When I added a layer, it gave me some error warning.js:33 Warning: Failed prop type: The prop warning.js:33 Warning: Failed prop type: Invalid prop Warning: Failed prop type: Invalid prop mapbox-gl.js:233 [object ProgressEvent] |
@cdqrain they are just warnings and look fine to me. Can you also provide the details requested in #208 (comment) |
@orangemug Hi, Maputnik can request my VectorTiles when I add layer. But for my VT projection is EPSG:4326 that Mapbox GL does't support. So I still can not view the data. Is it possible that Mapbox GL can use EPSG4326? |
Good to hear, sounds like your issue here is solved.
Never tried the following, but maybe these are good starting points: |
For anybody else finding this ticket, this comment provides a good answer mapbox/mapbox-gl-js#3184 (comment) |
This looks to be resolved. Closing the ticket, just shout if I've missed something and I'll reopen. |
I have a Vector Tiles server on my native enviroment. The Address like this
http://localhost:5000/VectorTiles/layer/{z}/{x}/{y}
, it return mapbox spec vectortiles. How to add it as a Source ?The text was updated successfully, but these errors were encountered: