Solved

Google Maps not displaying map

Posted on 2012-04-05
5
271 Views
Last Modified: 2012-04-06
Hello Experts!

I have a page that should be displaying a google map:

http://gorgeous-villas.com/search-results.asp?lng=7.00241&lat=43.64701&location=Valbonne

I copied the code from another page I was using for development, where the code works, but when I drop the code into this page, the map doesn't show...  I have made sure that the script code is in he header etc., so don't think there should be anything wrong, but there is...!

HELP greatly appreciated - thank you!
0
Comment
Question by:Nico2011
  • 2
  • 2
5 Comments
 
LVL 12

Expert Comment

by:Anuradha Goli
Comment Utility
Search valbonne in google maps
copy the iframe code to use in your website .
please find the attached image for reference.
Capture.PNG
0
 

Author Comment

by:Nico2011
Comment Utility
Thanks, but the site is an active SQL DB driven site - this is simply a static example of the results from a search.

Here is the page that works, using a larger map, the same search etc.

http://gorgeous-villas.com/results.asp?lng=7.00241&lat=43.64701&location=Valbonne
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 250 total points
Comment Utility
replace :
<div id="map_canvas"></div>

Open in new window

by :
<div id="map_canvas" style="height:120px"></div>

Open in new window


because currently the height of your div is 0px so you can't see the map
Clipboard02.jpg
0
 
LVL 12

Assisted Solution

by:Anuradha Goli
Anuradha Goli earned 250 total points
Comment Utility
<div id="map_canvas" style="HEIGHT:150PX;position: relative; background-color: rgb(229, 227, 223); overflow-x: hidden; overflow-y: hidden; ">

TRY HEIGHT IN DIV MAP
0
 

Author Closing Comment

by:Nico2011
Comment Utility
Thank you both - yo were both correct - I didn't have the 'px' after the size!
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now