Results 1 to 2 of 2

Thread: Google map address not working...

  1. #1
    Join Date
    Aug 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry Google map address not working...

    Hi,
    I am new on this forum, and my english is not quite good...
    I have a little problem with the implementation of "google map" script:
    the script is working fine, but when I enter a diferent address, the map is not opening in the little IFRAME window, is opening in a bigger window..
    I post the code, please tell me where I made something wrong?

    Code:
    <div id="mapcontainer">
    <div id="addrcolumn">
    <ul class="location">
    	<li class="selected"><a class="menu_text_color" href="http://maps.google.com/maps?q=Eiffel+Tower,+Champ+de+Mars,+Paris,+France&hl=en&ll=48.858934,2.294362&spn=0.005802,0.013937&sll=43.667872,-79.378796&sspn=0.041349,0.111494&z=17&iwloc=A">Eiffel Tower, France</a><br />
    	5 Avenue Anatole France, 75007 Paris, France
    	</li>
    
    	<li><a class="menu_text_color" href="http://maps.google.ro/maps?q=Salina+Turda,+Turda,+Romania&hl=ro&ll=46.585028,23.776088&spn=0.017608,0.054932&sll=46.587771,23.777332&sspn=0.017607,0.038581&t=h&z=15&iwloc=A">Salina Turda</a><br />
    	Turda Salt Mine is one of the most beautiful salt mines from Transylvania
    	</li>
    </ul>
    </div>
    
    <div id="mapcolumn">
    <iframe name="mapiframe1" frameborder="2" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com?output=embed"></iframe>
    <br /> <img src="../images/magnify.png" width="15" height="15"/> <a href="http://maps.google.com" target="_new" class="largermap">View Larger Map</a>
    </div>
    
    </div>
    The first address is working like it should, but the second (marked with red) is opening in a bigger window size, I expect to opening like the first one...
    Thanks in advance.
    Last edited by styven; 08-09-2011 at 03:07 PM.

  2. #2
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    557
    Thanks
    8
    Thanked 66 Times in 66 Posts

    Default

    Set the link to target into the iframe.

    Code:
    <div id="mapcontainer">
    <div id="addrcolumn">
    <ul class="location">
    	<li class="selected"><a class="menu_text_color" href="http://maps.google.com/maps?q=Eiffel+Tower,+Champ+de+Mars,+Paris,+France&hl=en&ll=48.858934,2.294362&spn=0.005802,0.013937&sll=43.667872,-79.378796&sspn=0.041349,0.111494&z=17&iwloc=A" target="mapiframe1">Eiffel Tower, France</a><br />
    	5 Avenue Anatole France, 75007 Paris, France
    	</li>
    
    	<li><a class="menu_text_color" href="http://maps.google.ro/maps?q=Salina+Turda,+Turda,+Romania&hl=ro&ll=46.585028,23.776088&spn=0.017608,0.054932&sll=46.587771,23.777332&sspn=0.017607,0.038581&t=h&z=15&iwloc=A">Salina Turda</a><br />
    	Turda Salt Mine is one of the most beautiful salt mines from Transylvania
    	</li>
    </ul>
    </div>
    
    <div id="mapcolumn">
    <iframe name="mapiframe1" id="mapiframe1" frameborder="2" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com?output=embed"></iframe>
    <br /> <img src="../images/magnify.png" width="15" height="15"/> <a href="http://maps.google.com" target="_new" class="largermap">View Larger Map</a>
    </div>
    
    </div>
    - Josh

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •