标记使用Base64 EN codeD字符串
问题描述:
我试图通过使用base64连接codeD串上使用谷歌地图的自定义标记。不知怎的,这是行不通的。
I am trying to use a custom marker on a Google Maps by using a base64 encoded string. Somehow it doesn't work.
答
尝试做如下:
var marker = new google.maps.Marker({
position: latLng,
map: map,
title: 'hello',
id: 'hehehe',
icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAA..."
});