作者:三十二号t娶我吧 | 来源:互联网 | 2023-05-18 05:35
andmycode和我的代码varpointRefmyDataRef.child(locations);functionrequestMarkerLocations(p
and my code
和我的代码
var pointRef = myDataRef.child("locations");
function requestMarkerLocations(pointRef) {
snapshot.forEach(function(childSnapshot) {
var id = childSnapshot.key();
pointRef.child(id).once("value", function (snapshot) {
var newPosition = id.val();
var latLng = new google.maps.LatLng(newPosition.lat,
newPosition.lng);
var marker = new google.maps.Marker({
position: latLng,
map: map
});
});
});
}
I need to show all markers and move them after I changed lat and Ing in the firebase.
我需要显示所有标记并在我在firebase中更改lat和Ing后移动它们。
1 个解决方案