Geojson设置窗格pane,控制层级

function addJiulongpoAreaWaterLayer1() {
  const label70 = params.gisMap.createPane('label70');
  label70.style.zIndex = 70;
  var layer = L.geoJson(jiulongpo_areawater, {
    fillColor: "#1754c5",
    fillOpacity: 0.3,
    weight: 1,
    color: "#2f4dad",
    pane: 'label70',

  });
  params.gisMap.addLayer(layer);

}

你可能感兴趣的:(leaflet)