我已经做了标记,所以它可以在地图上拖动。不过,我正在尝试从标记中获取坐标,以便将它们保存到我的数据库中。下面是代码,有没有一个函数,当标记被拖动时,我可以从中获得坐标。或者我应该使用另一个google地图react库。 import React, {Component, useCallback} from "react";
import GoogleMapReact from "google-map-react";
class Map extends Component {
loadMap = (map, maps) => {
let m
在npm上有没有在react原生的google地图上可用的包。我想使用google.maps.Bounds、google.maps.Point、google.maps.LatLngBounds、google.maps.Marker、google.maps.LatLng在react原生地图中绘制曲线折线,如下图所示和How to make a dashed curved polyline in Google Maps JS API?中所述。 ?