Rounded corners for the map view

588 views
Skip to first unread message

Deepak Nulu

unread,
Feb 20, 2013, 5:09:47 PM2/20/13
to leafl...@googlegroups.com
Hi,

I would like to set rounded-corners for the map view, but the following does not work:

#map-div {
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
}

I see rounded corners briefly when the page is first loading or when I am panning the map and new tiles are being loaded.

Is there some way to get rounded-corners?

Thanks.

-deepak

Todd Albert

unread,
Feb 20, 2013, 10:46:01 PM2/20/13
to leafl...@googlegroups.com
For me, this worked in FireFox but not Chrome. I haven't tested other browsers yet.


Funny, I can see the border-radius working as the map loads, but then the tiles load and they're rectangular. Perhaps it's a z-index issue. 

-Todd

Deepak Nulu

unread,
Feb 21, 2013, 1:11:11 PM2/21/13
to leafl...@googlegroups.com
Thanks for your response Todd.

It was not working for me in Safari (version 6.0.2 on Mac OS X 10.8.2), but after reading your post, I tried it in Firefox (version 16.0.2) and it worked there.

-deepak
Reply all
Reply to author
Forward
0 new messages