First question on Stack for me. I did my homework and found something like this topic.
In webkit browsers, google v3 maps do not take into account the border radius of the container. Does anyone have a workaround?
but still i see the problem. I'm here. I embed Google maps in one project and want to fix it in a round frame.
While the solution I used works fine on chrome and Firefox, I just discovered that I did some kind of test that Safari doesn't display the radius of the border in the “clipping” container, allowing the google map content to overlap rounded corners.
It is strange that this behavior applies only to Safari. While on chrome, it works very well.
You can check it yourself by opening this violin in safari and chrome, and you will immediately notice the difference (mind in the corners)
http://jsfiddle.net/wmcmeans/YHX6c/
The fiddle with the MAC is pretty obvious: just try in a different browser.
Here is the code structure used in the script that reflects the one I used in my project
<div id="map1" class="clip">
</div>
.clip {
overflow: hidden;
border-radius: 20px;
box-shadow: rgba(0, 0, 0, 0.55) 10px 20px 20px;
border: 1px solid red;
}
NOTE. The effect of cropping with a border radius works in Safari version 7.0.3, if inside the .clip div we have a static image as a background
Hope someone has a simple workaround:
thanks and ciao