[英]Google Map API Custom Marker
我正在嘗試制作一個自定義標記,即圖像。 但是,每當我添加“ icon:image;”時, 對我的代碼來說,地圖不再顯示。 我哪里做錯了?
var image = 'assets/marker.png';
var marker = new google.maps.Marker({
position: new google.maps.LatLng(40.6700, -73.9400),
map: map,
icon: image;
});
刪除“ icon:image”之后的半列。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.