|
|
@ -71,7 +71,7 @@ function Map(props) { |
|
|
|
const renderMarkers = () => { |
|
|
|
const data = emergencyList['xfjy'] |
|
|
|
|
|
|
|
data.map((x, index) => { |
|
|
|
data?.map((x, index) => { |
|
|
|
var marker = new AMap.Marker({ |
|
|
|
position: new AMap.LngLat(x.location?.split(',')[0], x.location?.split(',')[1]), |
|
|
|
// 将一张图片的地址设置为 icon
|
|
|
|