google maps infoWindow problems with TwentyTen (4 posts)

  1. security_man
    Posted 5 years ago #

    if you are trying to place a google map on a TwentyTen page and are seeing the top right and bottom right corners are missing and then some other missalignment the problem is in the style.css file. Here is how to fix it:

    Find (around line 785):

    #content img {
    	margin: 0;
    	max-width: 640px;

    max-width: 640px;

    i do not know if this will cause other problems with the theme but it will solve the problem with google maps

  2. DDT
    Posted 5 years ago #

    Tx, man
    after one hour looking into firebug i googled and your solutionn came up.

  3. namklim
    Posted 5 years ago #

    I use the XML Google Maps WordPress plugin and you can then include routes as well as a map centred on a single place. You do not need to modify the TwentyTen style.css.

    You need to create a kml or kmz file for your map and include it in post
    e.g. [xmlgm {http://mywebsite.com/mymap.kmz} width=640;height=500]

    1. Use Google Maps to design your route (or single place)
    2. Click on Link (on the RHS above the map) and copy the link
    3. Paste the link into the URL bar, add &output=kml to the end of URL,
    e.g. http://maps.google.co.uk/maps?f=d&saddr=Marble+Arch,+Westminster,+London+W1H,+United+Kingdom&daddr=London,+SW1A+1+(Buckingham+Palace)&hl=en&geocode=%3BCSStB8B7J1zGFTPZEQMdv9X9_yGH3Twxb-Jb5g&view=map&mra=pe&mrcr=0&sll=51.504654,-0.150823&sspn=0.045732,0.109177&ie=UTF8&z=14&output=kml
    and press Return. Save the resulting file (the default is maps.kml).

    If want a very complex Google Maps route, more that about 15 place points, you will need to open the map in Google Earth and create the kmz file (there seems to be a limit to the number of points Google Maps can handle in creating the output file)

  4. wavepointmedia
    Posted 4 years ago #

    Thanks this fixed the issue!

Topic Closed

This topic has been closed to new replies.

About this Topic