最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - customize google map's InfoWindow - Stack Overflow

programmeradmin0浏览0评论

I want to pletely customize the infowindow in google maps v3? I just want to show a image there, No white rounded background with arrow.

Is it possible in v3? or any workaround?

Something like this

I want to pletely customize the infowindow in google maps v3? I just want to show a image there, No white rounded background with arrow.

Is it possible in v3? or any workaround?

Something like this

Share Improve this question asked Jan 22, 2011 at 11:42 coure2011coure2011 42.6k87 gold badges225 silver badges361 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 3

take a look at the sources of this example - pletely customized info window (Google Map API v3 is used).
I found that example on Google Map API v3 Group - "Custom InfoWindow examples" - just in case you will need more info

If you just need a image as a marker, then you don't need an InfoWindow. You can set a custom image as a location marker.

pin=new google.maps.LatLng(50.00, 50.00);

if(marker) {
    marker.setMap(null);
}

var markerIcon = "car.png";

marker=new google.maps.Marker({
    position:pin,
    zIndexProcess: function( m )
    {
        return 9999999
    },
    icon:markerIcon
});

marker.setMap(map);

map.setCenter(marker.getPosition());
发布评论

评论列表(0)

  1. 暂无评论