geolocator - load terrain or satellite

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: [Jason] geolocator - load terrain or satellite

By rez - March 21, 2011

Thanks! hey, do you know if that eats more of my bandwidth to load a hybrid by default or does Google take it on? Like If I stream a youtube video, i know it saves me bandwidth instead of streaming from my site.

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/