首页 > 解决方案 > 具有 MVT 格式的 OpenLayers VectorTile 仅在图块边缘显示部分标记符号

问题描述

我的代码是这样的:

var source = new ol.source.VectorTile({

    format:new ol.format.MVT(),

    tileGrid:ol.tilegrid.createXYZ({maxZoom:22}),

    tilePixelRatio:1,

    url:'http://127.0.0.1:8080/xxx.pbf'

    });

但是在瓷砖的边缘,标记符号不能完整地显示点,它被边缘切割。有什么解决办法吗?谢谢。

标签: mapboxopenlayers

解决方案


推荐阅读