Google maps 如何为gmap.js添加自定义标记?

Google maps 如何为gmap.js添加自定义标记?,google-maps,google-maps-markers,Google Maps,Google Maps Markers,我正在尝试为我正在使用的地图添加自定义标记,我想知道是否有人在使用gmap.js时添加了客户标记 map.addMarker({ lat: latlng.lat(), lng: latlng.lng(), icon: "/images/mapicon.png" }); 或者我们可以初始化: var marker = new google.maps.Marker({ position: myLatLng, map: map, icon: 'schools_ma

我正在尝试为我正在使用的地图添加自定义标记,我想知道是否有人在使用gmap.js时添加了客户标记

map.addMarker({
    lat: latlng.lat(),
    lng: latlng.lng(),
    icon: "/images/mapicon.png"
});
或者我们可以初始化:

var marker = new google.maps.Marker({
  position: myLatLng,
  map: map,
  icon: 'schools_maps.png',
  shadow: 'schools_maps.shadow.png'
});