引入import L from 'leaflet';
会报错Uncaught TypeError: Cannot read properties of undefined (reading 'TiledMapLayer')
at VueComponent.drillDownMap (amapGis.vue:510:1)
at c.eval (amapGis.vue:374:1)
at c.r (maps?callback=___onAPILoaded&v=1.4.15&key=4b87b3c701f1c99945206bac8af954bf&plugin=AMap.DistrictLayer,AMap.DistrictSearch:28:61)
at c.qa (maps?callback=___onAPILoaded&v=1.4.15&key=4b87b3c701f1c99945206bac8af954bf&plugin=AMap.DistrictLayer,AMap.DistrictSearch:507:434)
at c.sc (maps?callback=___onAPILoaded&v=1.4.15&key=4b87b3c701f1c99945206bac8af954bf&plugin=AMap.DistrictLayer,AMap.DistrictSearch:508:60)
at c.r (maps?callback=___onAPILoaded&v=1.4.15&key=4b87b3c701f1c99945206bac8af954bf&plugin=AMap.DistrictLayer,AMap.DistrictSearch:28:61)
at c.S4 (eval at <anonymous> (maps?callback=___onAPILoaded&v=1.4.15&key=4b87b3c701f1c99945206bac8af954bf&plugin=AMap.DistrictLayer,AMap.DistrictSearch:617:305), <anonymous>:1:12882)
at HTMLDivElement.e [as mouseup204_15_203] (maps?callback=___onAPILoaded&v=1.4.15&key=4b87b3c701f1c99945206bac8af954bf&plugin=AMap.DistrictLayer,AMap.DistrictSearch:114:522)
应改为:import L from '@supermap/iclient-leaflet/node_modules/leaflet