Angular >6.x 中集成Leaflet
安装nnnnpm install leaflet -Snnnpm install @types/leaflet -Dnn在tsconfig.json文件中添加nnnn …,n “compilerOptions”: n …,n+ “paths”: n+ “leaflet”: [“node_modules/leaflet/dist/leaflet.js”]n+ …
安装nnnnpm install leaflet -Snnnpm install @types/leaflet -Dnn在tsconfig.json文件中添加nnnn …,n “compilerOptions”: n …,n+ “paths”: n+ “leaflet”: [“node_modules/leaflet/dist/leaflet.js”]n+ …