谷歌地图自定义标记与base64字符串

时间:2014-07-03 01:40:58

标签: google-maps google-maps-api-3

我尝试了很多方法将我的base64字符串图像加载为Chrome中的Google地图自定义标记。 这样:

var marker = new google.maps.Marker({
    position: latLng,
    map: map,
    title: 'hello',
    id: 'the id',
    icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAA..."
});

根据建议here,导致我的图片覆盖800x400px地图的上半部分。

所以我想我必须重新调整图像的大小并执行以下操作,并且不显示图像。

var my_marker = new Image(30, 30);
$(my_marker).attr('style', 'z-index: 1000')
my_marker.onload = function () {
    var marker = new google.maps.Marker({
                    position: pos,
                    map: map,
                    title: pps[0].place_name,
                    icon: my_marker
                });
                map.setCenter(pos);
};
my_marker.src = pps[0].place_photo; 

虽然当我在开发人员工具中停止代码时,my_marker对象看起来很棒,包括z-index。

有关我应该如何调整base64图像大小并将其显示为Google地图标记的任何想法?这就是问题:从最初生成base64时的大小重新调整图像大小 - 在我的情况下非常大。感谢

1 个答案:

答案 0 :(得分:3)

如果图标太大,则需要缩放图标。

    var marker = new google.maps.Marker({
        position: map.getCenter(),
        icon: {
            size: new google.maps.Size(220,220),
            scaledSize: new google.maps.Size(32,32),
            origin: new google.maps.Point(0,0),
            url: "data:image/png;base64,iVBORw0KGgoAAAANSUh...",
            anchor: new google.maps.Point(16,16)},
        map: map
      });

updated fiddle with big image

代码段

var infowindow = new google.maps.InfoWindow();

function initialize() {
  var map_canvas = document.getElementById('map_canvas');
  var map_options = {
    center: new google.maps.LatLng(44.5403, -78.5463),
    zoom: 8,
    mapTypeId: google.maps.MapTypeId.ROADMAP
  }
  var map = new google.maps.Map(map_canvas, map_options)

  var marker = new google.maps.Marker({
    position: map.getCenter(),
    icon: {
      size: new google.maps.Size(220, 220),
      scaledSize: new google.maps.Size(32, 32),
      origin: new google.maps.Point(0, 0),
      url: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAADcCAYAAAAbWs+BAAAABGdBTUEAALGPC/xhBQAAAAF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cGVkaWEub3JnL3dpa2kvRmlsZTpOeWFuX2NhdF8yNTBweF9mcmFtZS5QTkeE+tMFAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDEyLTAyLTA4VDE1OjUxOjM3KzAwOjAwBhOjhQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxMi0wMi0wOFQxNTo1MTozNyswMDowMHdOGzkAAABFdEVYdHNvZnR3YXJlAEltYWdlTWFnaWNrIDYuNi4yLTYgMjAxMS0wMy0wOSBROCBodHRwOi8vd3d3LmltYWdlbWFnaWNrLm9yZ3c5eX0AAAAYdEVYdFRodW1iOjpEb2N1bWVudDo6UGFnZXMAMaf/uy8AAAAYdEVYdFRodW1iOjpJbWFnZTo6aGVpZ2h0ADI1ME/94vwAAAAXdEVYdFRodW1iOjpJbWFnZTo6V2lkdGgAMjUwk1GxcQAAABl0RVh0VGh1bWI6Ok1pbWV0eXBlAGltYWdlL3BuZz+yVk4AAAAXdEVYdFRodW1iOjpNVGltZQAxMzI4NzE2Mjk3cH7PZgAAABJ0RVh0VGh1bWI6OlNpemUAMTIuM0tCyKi/kQAAAEl0RVh0VGh1bWI6OlVSSQBmaWxlOi8vL21udC91cGxvYWQ2L3dpa2lwZWRpYS9lbi9lL2VkL055YW5fY2F0XzI1MHB4X2ZyYW1lLlBORyziCX0AAAAASUVORK5CYII=",
      anchor: new google.maps.Point(16, 16)
    },
    map: map
  });
  google.maps.event.addListener(marker, 'click', function(evt) {
    infowindow.setContent("custom marker from<br> data:image/png;base64");
    infowindow.setOptions({
      pixelOffset: new google.maps.Size(-95, 0)
    });
    infowindow.open(map, marker);
  });
  google.maps.event.trigger(marker, 'click');
}
google.maps.event.addDomListener(window, 'load', initialize);
#map_canvas {
  width: 500px;
  height: 400px;
}
<script src="https://maps.googleapis.com/maps/api/js"></script>
<div id="map_canvas"></div>
<div id="info"></div>