Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

google map not showing up

Status
Not open for further replies.
Not sure about the Google Map but I get a malicious cookie warning from your website and 106 errors on validation. Might be worth curing the validation errors before trying to nail down a specific error.


Keith
 
It has been a while since I configured a Google map. Isn't there supposed to be a site API key to access Google's services? I do not see it in the HTML. Nor am I clear where the JS functions are being called.
 
I don't think you need an API key any more, spamjim.

I think the problem is you define a load of JS functions to display your map, but don't actually call any of them. So it should work if you just add this after the map_canvas div is closed:
Code:
 <script type="text/javascript"> 
     initialize();
</script>
That said, it's fairly bold to enter the whole maps functionality in one go and then hope it works - because if it doesn't, it's much harder to find the fault. I'd advise starting small - just displaying the plain map - and get that working. Then try plotting a polygon, then make it clickable, then add more polygons - checking that it works at each stage.

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
Chris,

I added the above after the closing of my map_canvas div but didn't affect anything....the only thing I did was copy my google map code from another page and put it within a page which I already had at overwriting the script from that google map version which does require an api key

yes I know they are validation errors but I don't see why just by overwriting my script the map isn't showing up?

thanks for any help provided
 
Assuming the original code works correctly, how and where is the initialise function called in the working version and are any params passed to the function?
Are any other functions called from anywhere else in the original source code?

Keith
 
No the sales.php page is where I copied the script and no other external functions are called

everything else on the page is the navigatin bar and what is below the map
 
thank you!!! Now to fix the validation errors
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top