Leaflet(1) ----- leaflet + GeoJSON + ( Navigator对象的geoLocation获取当前位置 )
(一)安装yarnaddleaflet(二)使用(1)在index.html中添加地图显示的容器index.html也可以把leaflet的css文件引入index.html-----则在js页面不引入(2)引入并使用importReact,{Component}from'react';importlogofrom'./logo.svg';import'./App.css';importLfrom