Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在尝试为我正在使用的地图添加自定义标记,我想知道是否有人在使用 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' });