Each version is implemented differently. One uses G ~ in the global namespace, and the other is under the google.maps namespace. ~.
, JSON, - . . LatLng Marker.
, , Google.
var marker = new google.maps.Marker({
position: latlng,
map: map,
icon: new google.maps.MarkerImage(
"maps/images/point.png",
new google.maps.Size(36, 36),
new google.maps.Point(0, 0),
new google.maps.Point(10, 10),
new google.maps.Size(20, 20)
)
});
, :
marker.setMap(null);
delete marker;