Coder Social home page Coder Social logo

加载矢量瓦片不显示结果 about l7 HOT 4 CLOSED

szygiser avatar szygiser commented on June 12, 2024
加载矢量瓦片不显示结果

from l7.

Comments (4)

github-actions avatar github-actions commented on June 12, 2024

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

from l7.

lvisei avatar lvisei commented on June 12, 2024

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

image

from l7.

lvisei avatar lvisei commented on June 12, 2024

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

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

from l7.

lvisei avatar lvisei commented on June 12, 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,改下服务

from l7.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.