摘要: 一、官方中文帮助http://www.mapbox.cn/mapbox-gl-jshttp://www.mapbox.cn/mapbox-gl-js/example/data-join/https://docs.mapbox.com/help/tutorials/?product=Mapbox+GL 阅读全文
posted @ 2021-07-17 22:55 咸鱼翻身 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-07-17 21:27 咸鱼翻身 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 1、数据源加载 map.addSource('building', { type: 'vector', tiles: ['http://192.168.182.1:6767/{z}/{x}/{y}.pbf'] }) 2、建筑图层加载 map.addLayer({ "id": "guanzhou", 阅读全文
posted @ 2021-07-17 16:25 咸鱼翻身 阅读(1208) 评论(0) 推荐(0) 编辑
摘要: map.on('load', function() { map.addLayer({ "id": "guanzhou", "type": "fill-extrusion", "source": { type: 'vector', tiles: ['http://192.168.182.1:6767/ 阅读全文
posted @ 2021-07-17 16:03 咸鱼翻身 阅读(459) 评论(0) 推荐(0) 编辑
摘要: 1、下载建筑shp文件(带有高度字段的polygon数据) 2、使用mapshaper转换为geojson格式(本地处理) 3、安装cygwin,参考https://www.cnblogs.com/jyughynj/p/11804721.html 4、使用tippecanoe转换mbtiles矢量切 阅读全文
posted @ 2021-07-17 11:27 咸鱼翻身 阅读(394) 评论(0) 推荐(0) 编辑