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

加载矢量瓦片不显示结果 #2362

Closed
szygiser opened this issue Mar 23, 2024 · 4 comments
Closed

加载矢量瓦片不显示结果 #2362

szygiser opened this issue Mar 23, 2024 · 4 comments
Assignees
Labels
question 疑问/使用问题 🌟 star

Comments

@szygiser
Copy link

szygiser commented Mar 23, 2024

No description provided.

Copy link
Contributor

Hi @szygiser, Please star this repo if you find it useful! Thanks ⭐!
你好 @szygiser。如果该仓库对你有用,可以 star 一下,感谢你的 ⭐!

@lvisei
Copy link
Member

lvisei commented Mar 25, 2024

采用了 Mapbox 标准的矢量瓦片,没有什么特殊性。重现示例中瓦片请求失败,检查服务可访问。

image

@lvisei lvisei closed this as completed Mar 25, 2024
@lvisei
Copy link
Member

lvisei commented Mar 25, 2024

服务没有数据,检查服务。mapboxgl 确保可以,贴一个复现链接

http://60.217.200.163:8995/geoserver/gwc/service/tms/1.0.0/ghgas%3Aghgas_pipesectionhpa@WebMercatorQuad@pbf/5/24/14.pbf

@lvisei
Copy link
Member

lvisei commented Mar 26, 2024

mapboxgl的可记载html附件上传:
testgeoserver.zip

map.addSource('mapillary', {
'type': 'vector',
'scheme': 'tms',
'tiles': [
'http://60.217.200.163:8995/geoserver/gwc/service/tms/1.0.0/ghgas%3Aghgas_pipesectionhpa@WebMercatorQuad@pbf/{z}/{x}/{y}.pbf'
],
'minzoom': 1,
'maxzoom': 14,
'tileSize': 512
});
  1. tileSize 需要一致
  2. scheme,L7 矢量瓦片只支持 xyz 的,不支持 tms,改下服务

@lvisei lvisei added the question 疑问/使用问题 label Mar 26, 2024
@szygiser szygiser changed the title 加载Geoserver的矢量瓦片不显示结果 加载矢量瓦片不显示结果 Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question 疑问/使用问题 🌟 star
Projects
None yet
Development

No branches or pull requests

3 participants