google map custom marker with base64 string
问题 I have tried quite a few ways to load my base64 string image as a google map custom marker in Chrome. This: var marker = new google.maps.Marker({ position: latLng, map: map, title: 'hello', id: 'the id', icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAA..." }); As recommended here, cause my image to cover the top half of my 800x400px map. So I figured I had to re-size the image and did the following, and no image displays. var my_marker = new Image(30, 30); $(my_marker).attr('style