Google maps 是否添加带有符号和gif图像的标记图标?
是否可以将符号(SVG)加上gif图像用作标记图标? 从文档来看,不清楚这是否不受支持,或者是否有任何技巧可以实现这一点 我试过了,但没有成功:Google maps 是否添加带有符号和gif图像的标记图标?,google-maps,google-maps-api-3,Google Maps,Google Maps Api 3,是否可以将符号(SVG)加上gif图像用作标记图标? 从文档来看,不清楚这是否不受支持,或者是否有任何技巧可以实现这一点 我试过了,但没有成功: marker = new google.maps.Marker({ position:new google.maps.LatLng(38.742588, -9.230097), icon:{ path:google.maps.SymbolPath.CIRCLE,
marker = new google.maps.Marker({
position:new google.maps.LatLng(38.742588, -9.230097),
icon:{
path:google.maps.SymbolPath.CIRCLE,
scale:1,
url: 'http://icons.iconarchive.com/icons/icons-land/vista-map-markers/16/Map-Marker-Bubble-Azure-icon.png'
},
draggable:true,
map:map
});
可以使用阴影选项
不再支持阴影:(
var marker = new google.maps.Marker({
position:new google.maps.LatLng(38.742588, -9.230097),
icon:{
url: 'http://icons.iconarchive.com/icons/icons-land/vista-map-markers/16/Map-Marker-Bubble-Azure-icon.png'
},
shadow:{
path:google.maps.SymbolPath.CIRCLE,
scale: 10
},
draggable:true,
map:map
});