"Background color for googlemap"

5,361 views
Skip to first unread message

S.V.S Mani

unread,
Jul 20, 2010, 6:58:43 PM7/20/10
to google-map...@googlegroups.com
Hi,

I would like to set background color/image for googlemap.

How to do it ? please guide me.

regards,
Mani.

geoco...@gmail.com

unread,
Jul 20, 2010, 7:20:39 PM7/20/10
to Google Maps JavaScript API v3
On Jul 20, 3:58 pm, "S.V.S Mani" <svsma...@gmail.com> wrote:
> Hi,
>
> I would like to set background color/image for googlemap.
>
> How to do it ? please guide me.

Have you seen this:
http://googlegeodevelopers.blogspot.com/2010/05/add-touch-of-style-to-your-maps.html

-- Larry


>
> regards,
> Mani.

Kesuke

unread,
Jul 21, 2010, 6:54:56 AM7/21/10
to Google Maps JavaScript API v3
var myOptions = {
zoom: 2,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP,
backgroundColor: '#FFFFFF'
};

In V3, use the backgroundColor property (note the 'color' spelling if
you're from the UK) and give it a color code as a string. Search the
API reference for more info. However, you cannot change the
backgroundColor property dynamically (it must be done during your
onLoad/initialize).

S.V.S Mani

unread,
Jul 22, 2010, 7:44:23 AM7/22/10
to google-map...@googlegroups.com
Hi Larry/Kesuke,

Thanks a lot for the help. Background color works fine.
If I have nice background image (ex. bkgrnd.jpg) and I would like to
set that as my googlemap background.
I checked Google Maps API Styled Map Wizard as well but couldn't find
a way to set background image.

Any options to do this ?

regards
Mani.

> --
> You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
> To post to this group, send email to google-map...@googlegroups.com.
> To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages