派生自 wuyushui/SewerAndRainNetwork

wangqi
2021-04-09 7ff20fa3438e716cc2b7ff1ad3494af45d183fa4
src/Sgis.js
@@ -20,13 +20,13 @@
let map = null
const L = window.L
const initMap = (div) => {
const initMap = (div, mapOption) => {
  if (map != null) {
    map.remove()
  }
  DownLoad.init(L)
  map = L.map(div, MapConfig.mapOptions)
  const option = mapOption || MapConfig.mapOptions
  map = L.map(div, option)
  map.on('click', (event, a, b) => {
    console.log(event, a, b)