Google Map wont appear
Hi
I have imbedded a Google map in to a web page I have built but for some reason I cant get it to render when the page is uploaded.
Do I need an API key for this to work?
The link to the page is below:
contact.html
Thanks
Hi
I have imbedded a Google map in to a web page I have built but for some reason I cant get it to render when the page is uploaded.
Do I need an API key for this to work?
The link to the page is below:
contact.html
Thanks
Have you uploaded the google_javascript folder in the webassist directory?
I've noticed that this doesnt always get uploaded, especially in the buggy Dreamweaver CS6.
Cheers
Ian
on viewing the page source of the file you uploaded, the links to the js files all use file system links:
<script type="text/javascript" src="file:///Macintosh HD/Users/scottmurthwaite/Desktop/webassist/google_javascript/wagmp_map_2.js">/*wagmp*/</script>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false&key=">/*wagmp*/</script>
<script type="text/javascript" src="file:///Macintosh HD/Users/scottmurthwaite/Desktop/webassist/google_javascript/wagmp_maps.js">/*wagmp*/</script>
they should be using document relative links instead.
This will happen if you use the Save command in dreamweaver to save the file to a new location that is outside of your dreamweaver site and allow dreamweaver to update the links.
make sure you have a site properly defined for you site development, and save the files within your dreamweaver site so that links can be created properly.
Should there be more than three links?
not necessarily, I just used those as examples really.
there may or may not be more than three, regardless, none of them should be file system references.
Ok..
Made the changes....but still no luck, the links have been updated to:
<script type="text/javascript" src="webassist/google_javascript/wagmp_map_1.js">/*wagmp*/</script>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false&key=">/*wagmp*/</script>
<script type="text/javascript" src="webassist/google_javascript/wagmp_maps.js">/*wagmp*/</script>
Stiil wont render???
Any clues?
Hi Jason
Have you had a chance to look at the page yet and possibly see why its not rendering still?
Thanks
you dont have a valid address entered.
in the source code of the wagmp_map_2.js file that is attached to your page, the address entered is giberish:
address[loopIndex] = {
street: 'efsef',
city: 'efef',
state: 'ewfe',
zip: 'wefe',
country: '',
the google geocoder cannot lookup this address, nor can i for that matter.
Ok cool..I only entered that because I was having to keep enter a long address and then once uploaded it still wouldn't work.
I will enter the correct address and upload it again.
Thanks
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.