CoreLocation for OS X using iFrame Google Maps can't select "Map, Satellite, Terrain" as default
I have been modifying开发者_StackOverflow中文版 the code here: WhereIsMyMac to try and get a better understanding of CoreLocation for OS X. Unfortunately, I haven't been able to figure out how to modify the template HTML file to force a "Maps" view - my frame defaults to "Satellite View"
Here is the relevant line:
src="http://maps.google.com/maps?ie=UTF8&ll=%f,%f&spn=%f,%f&t=h&z=15&output=embed"
Perhaps I'm not using the proper search terms to find the answer on my own, but I cannot find out how to force this into "Map View"
Any pointers would be a great help. I know this is a simple question - but I cannot find the answer.
You need to use the t parameter to set the map type:
t= Map Type. The available options are "m" map, "k" satellite, "h" hybrid, "p" terrain.
So from your source:
src="http://maps.google.com/maps?ie=UTF8&ll=%f,%f&spn=%f,%f&t=m&z=15&output=embed"
solution:
http://mapki.com/index.php?title=Google_Map_Parameters
精彩评论