javascript - customize google map's InfoWindow - Stack Overflow

I want to pletely customize the infowindow in google maps v3? I just want to show a image there, No whi

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());

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745144787a4613598.html

相关推荐

  • javascript - customize google map's InfoWindow - Stack Overflow

    I want to pletely customize the infowindow in google maps v3? I just want to show a image there, No whi

    2小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信