English 中文(简体)
圆形地图角隐藏街景关闭按钮
原标题:Rounded map corners hide streetview close button

我使用了css和;角图像可以在地图上获得圆角,但在显示街景时,关闭按钮位于图像下方,无法单击。有人有什么想法吗?

问题回答

我最近遇到了这个问题。。。我创建了一个“框架”(即:一个类似于“相框”的div,完美地位于地图div的顶部;如果需要,可以绝对定位它),并将圆角效果和角图像应用于框架而不是地图div。

或者,您可以尝试将映射包装在隐藏溢出的父div中。

我最终将一个事件绑定到右上角的div中,以便在单击时关闭街景。





相关问题
Why do I get "map.set_center is not a function"?

This code have been working until I updated last night. The code works perfectly on my localhost, but I get an error on my test server. The error message (from Firebug) is "map.set_center is not a ...

The state of GMaps v3

I m about to start a Google map based project and am wondering if the release version of GMaps v3 has most of the features that are available in v2, or if it would be best to stick with v2 for now. Is ...

Bouncy marker in Google Maps v3

In Google Maps API v2 we can set to marker an option bouncy:true. It adds to marker eye-candy ability - after dragging this marker, it is bouncing. Is it possible to do in API v3 ?

GUnload() a single Google Map

I ve got some Javascript/HTML code which displays a variable number of maps dependent on what the user selects. I ve worked how to dynamically create multiple maps on a page - that s well documented. ...

How to change Gmap markers color?

I ve a custom google map with different points: Markers[0] = new Array(new GMarker(new GLatLng(45.0, 9.0)), "Location1", "<strong>Address Line</strong><br/>Some information"); ...

热门标签