geolocator - load terrain or satellite

By rez - March 18, 2011 - edited: March 19, 2011

Hi, I am using the multi location example map. I would like to know how to load the terrain or satellite maps by default and didnt notice any reference or notes on the page. Is this possible?

I'd actually like to be able to load them for all examples and the iframe versions if its not the same?

thanks.

Re: [rez] geolocator - load terrain or satellite

By Jason - March 21, 2011

Hi,

What you need to change is the MapTypeId, which is set in the code like this:

var mapOptions = { mapTypeId: google.maps.MapTypeId.ROADMAP };

As you can see, the default is ROADMAP. There are 4 options available:
-HYBRID
-ROADMAP
-SATELLITE
-TERRAIN
(http://code.google.com/apis/maps/documentation/javascript/reference.html#MapTypeId)

So, for example, if you wanted to default to a satellite view, you would change the code to this:

var mapOptions = { mapTypeId: google.maps.MapTypeId.SATELLITE };

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [rez] geolocator - load terrain or satellite

By Jason - March 22, 2011

Hi,

That's a good question. As far as I know, Google would take this on. However, even if they don't, the difference in bandwidth I think would be negligible.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/