PDA

View Full Version : Are there any resources on customizing the look of the google map?


BeckmannPhotos
Aug-05-2008, 12:15 PM
I got an API key and have a separate page for my map, but I want to be able to adjust the size of the map, where it is centered, zoom level, etc. right now it is centered over Antarctica and the world image only shows on half of the actual embedded space.

I have done a search for map customization with no luck.

richW
Aug-06-2008, 11:38 AM
I got an API key and have a separate page for my map, but I want to be able to adjust the size of the map, where it is centered, zoom level, etc. right now it is centered over Antarctica and the world image only shows on half of the actual embedded space.

I have done a search for map customization with no luck.The 1/2 map issue is caused by the 'galleries page' hack.
See this post: http://www.dgrin.com/showthread.php?p=873545#post873545

I don't know of a way to adjust the zoom. My map centers based on where the images are tagged.

The height & width of the map can be changed. http://lmsportspix.smugmug.com/map/

Just need to 'stretch' the page: http://www.dgrin.com/showthread.php?t=93221

BeckmannPhotos
Aug-06-2008, 12:43 PM
Rich, I tried changing that function coding to my header javascript, and now all my pages are just displaying an identical home page. I cut and pasted this part of code from the footer javascript to the header javascript, is there something else I need to correct?

function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

if (hasPath("map"))
YD.addClass(document.body, "map");

if (hasPath("mysearch"))
YD.addClass(document.body, "mysearch");

BeckmannPhotos
Aug-06-2008, 12:50 PM
Nevermind, figured it out, thanks Rich!

BeckmannPhotos
Aug-06-2008, 03:08 PM
Rich (or anyone else that knows), now that I have stretched my map page the map looks squished vertically. How can I increase the vertical height of the map window?

richW
Aug-06-2008, 04:18 PM
Rich (or anyone else that knows), now that I have stretched my map page the map looks squished vertically. How can I increase the vertical height of the map window?Looking good :thumb

How about this:
#map {height: 500px !important;}

Adjust as needed :D

BTW, If you need to adjust your thumbs in the categories, search results page, etc.
Look in my css. Just under /* category and gallery lists */ it's the css to adjust the mini boxes, etc...