openlayer vectorlayer添加功能不显示

时间:2020-09-08 05:50:35

标签: reactjs openlayers

const geo = new OLGeoJSON();
  const source = new VectorSource({
    // format: new OLGeoJSON(),
    wrapX: false,
    projection: 'EPSG:4326',
    features: geo.readFeatures(features, {
      dataProjection: 'EPSG:4326',
      featureProjection: 'EPSG:3857',
    }),
  });

使用矢量图层时,添加190多个要素不会显示任何点

0 个答案:

没有答案