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.
如何在没有任何地理代码的情况下在谷歌地图上显示多个标记?
您应该查看gmaps.js。它是 google maps api 的包装,但是“痛苦少得多,乐趣多得多”:
map.addMarker({ lat: -12.043333, lng: -77.028333, title: 'Lima', click: function(e) { alert('You clicked in this marker'); } });
例子