Map is not supported

7 replies · opened Apr 3, 2017

SsupremvanamApr 3, 2017

This page didn't load Google Maps correctly. See the JavaScript console for technical details.

SsupremvanamApr 3, 2017

This is the screenshot

SSemicolon WebSTAFFApr 5, 2017

Hello,

You will need to use the Google Maps API Key for the Maps to work properly. Please find the following code:

https://maps.google.com/maps/api/js?key=YOUR_API_KEY

You can generate your API Key (Browser Key) for Google Maps from here: https://developers.google.com/maps/documentation/javascript/ and then Click on Get a Key in the Header. Make sure you replace YOUR_API_KEY with you Generated API Key.

This will definitely fix your issue. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Sskelstar1Apr 12, 2017

I have the same problem... got the API key... applied it... followed your instructions to a tee... still no map.

HELP.

MMychaelApr 12, 2017

Move the scripts to your footer and it should work. I took your source code and rearranged it and it worked for me.

<!DOCTYPE html>
<html dir="ltr" lang="en-US">
<head>

&lt;!-- Document Title
============================================= --&gt;
&lt;title&gt;Map and Driving Directions&lt;/title&gt;

&lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&gt;
&lt;meta name="author" content="Sanilac County Historic Village & Museum" /&gt;

&lt;!-- Stylesheets
============================================= --&gt;
&lt;link href="http://fonts.googleapis.com/css?family=Lato:300,400,400italic,600,700|Raleway:300,400,500,600,700|Crete+Round:400italic" rel="stylesheet" type="text/css" /&gt;
&lt;link rel="stylesheet" href="css/bootstrap.css" type="text/css" /&gt;
&lt;link rel="stylesheet" href="style.css" type="text/css" /&gt;
&lt;link rel="stylesheet" href="css/swiper.css" type="text/css" /&gt;
&lt;link rel="stylesheet" href="css/dark.css" type="text/css" /&gt;
&lt;link rel="stylesheet" href="css/font-icons.css" type="text/css" /&gt;
&lt;link rel="stylesheet" href="css/animate.css" type="text/css" /&gt;
&lt;link rel="stylesheet" href="css/magnific-popup.css" type="text/css" /&gt;
&lt;link rel="stylesheet" href="css/responsive.css" type="text/css" /&gt;
&lt;link rel="stylesheet" href="css/colors.css" type="text/css" /&gt;

<meta name="viewport" content="width=device-width, initial-scale=1" />
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-38017318-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>
<link rel="stylesheet" href="ajximagerotator.css" type="text/css" />
<script src="ajximagerotator.js" type="text/javascript"></script>

<style>
#content p {font-size:18px;}
table.center {margin-left:auto;margin-right:auto;}
</style>
</head>

<body class="stretched">

&lt;!-- Document Wrapper
============================================= --&gt;
&lt;div id="wrapper" class="clearfix"&gt;

	&lt;!-- Header
	============================================= --&gt;
	&lt;header id="header" class="full-header"&gt;

		&lt;div id="header-wrap"&gt;

			&lt;div class="container clearfix"&gt;

				&lt;div id="primary-menu-trigger"&gt;&lt;i class="icon-reorder"&gt;&lt;/i&gt;&lt;/div&gt;

				&lt;!-- Logo
				============================================= --&gt;
				&lt;div id="logo"&gt;
					[

attachment
](index.php)

attachment

</div><!-- #logo end -->

				&lt;!-- Primary Navigation
				============================================= --&gt;
				&lt;nav id="primary-menu"&gt;

					
						&lt;li class="current"&gt;[HomeYou Found Us](index.php)

<h3>228 S. Ridge Street Port Sanilac, Michigan 48469 810-622-9946</h3>
<h3>Note: Ridge Street Is M-25 On This Map.</h3>
<div id="google-map1" style="height: 250px;" class="gmap"></div>

							&lt;/div&gt;
						&lt;/div&gt;
					&lt;/div&gt;
				&lt;/div&gt;
			&lt;/div&gt;
	&lt;/section&gt;&lt;!-- #content end --&gt;
	&lt;!-- Footer
	============================================= --&gt;
	&lt;footer id="footer" class="dark"&gt;

		&lt;div class="container"&gt;

			&lt;!-- Footer Widgets
			============================================= --&gt;
			&lt;div class="footer-widgets-wrap clearfix"&gt;

					&lt;div class="col_one_third"&gt;

						&lt;div class="widget clearfix"&gt;

attachment

							&lt;div&gt;
								&lt;address&gt;
									**Historic Village & Museum:**&lt;br&gt;
									228 S. Ridge Street&lt;br&gt;
									Port Sanilac, Michigan 48469&lt;br&gt;
								&lt;/address&gt;
								&lt;abbr title="Phone Number"&gt;**Phone:**&lt;/abbr&gt; (810)-622-9946&lt;br&gt;
								&lt;abbr title="Email Address"&gt;**Email:**&lt;/abbr&gt; sanilacmuseum at gmail.com
							&lt;/div&gt;

						&lt;/div&gt;

					&lt;/div&gt;

					&lt;div class="col_one_third"&gt;
						&lt;div class="widget clearfix"&gt;

							&lt;h4 style="text-align:center;"&gt;Upcoming Events&lt;/h4&gt;
							&lt;div id="oc-portfolio-sidebar" class="owl-carousel carousel-widget" data-items="1" data-margin="10" data-loop="true" data-nav="false" data-autoplay="5000"&gt;

								&lt;div class="oc-item"&gt;
									&lt;div class="iportfolio"&gt;
										&lt;div class="portfolio-desc center nobottompadding"&gt;
											&lt;h3&gt;[Thumb Regional Historical Consortium](calendar.php)&lt;/h3&gt;
											&lt;span&gt;[May, 4](#)&lt;/span&gt;
										&lt;/div&gt;
									&lt;/div&gt;
								&lt;/div&gt;

								&lt;div class="oc-item"&gt;
									&lt;div class="iportfolio"&gt;
										&lt;div class="portfolio-desc center nobottompadding"&gt;
											&lt;h3&gt;[Volunteer Day](calendar.php)&lt;/h3&gt;
											&lt;span&gt;[June, 3](#)&lt;/span&gt;
										&lt;/div&gt;
									&lt;/div&gt;
								&lt;/div&gt;
								&lt;div class="oc-item"&gt;
									&lt;div class="iportfolio"&gt;
										&lt;div class="portfolio-desc center nobottompadding"&gt;
											&lt;h3&gt;[Voyageurs and Settlers Days](calendar.php)&lt;/h3&gt;
											&lt;span&gt;[June, 10 & 11](#)&lt;/span&gt;
										&lt;/div&gt;
									&lt;/div&gt;
								&lt;/div&gt;
								&lt;div class="oc-item"&gt;
									&lt;div class="iportfolio"&gt;
										&lt;div class="portfolio-desc center nobottompadding"&gt;
											&lt;h3&gt;[Children&apos;s Days at the Museum 1-3 pm](calendar.php)&lt;/h3&gt;
											&lt;span&gt;[June, 14, 21, 28](#)&lt;/span&gt;
										&lt;/div&gt;
									&lt;/div&gt;
								&lt;/div&gt;
								&lt;div class="oc-item"&gt;
									&lt;div class="iportfolio"&gt;
										&lt;div class="portfolio-desc center nobottompadding"&gt;
											&lt;h3&gt;[Singin&apos; the Sixties Music Fest](calendar.php)&lt;/h3&gt;
											&lt;span&gt;[July, 22](#)&lt;/span&gt;
										&lt;/div&gt;
									&lt;/div&gt;
								&lt;/div&gt;
								&lt;div class="oc-item"&gt;
									&lt;div class="iportfolio"&gt;
										&lt;div class="portfolio-desc center nobottompadding"&gt;
											&lt;h3&gt;[Party for Preservation](calendar.php)&lt;/h3&gt;
											&lt;span&gt;[July 23](#)&lt;/span&gt;
										&lt;/div&gt;
									&lt;/div&gt;
								&lt;/div&gt;

							&lt;/div&gt;

						&lt;/div&gt;

					&lt;/div&gt;

				&lt;div class="col_one_third col_last"&gt;

					&lt;div class="widget subscribe-widget clearfix"&gt;
						&lt;h5&gt;**Subscribe** to Our Newsletter to get Important News, Amazing Offers & Inside Scoops: [Subscribe](newsletter.php)&lt;/h5&gt;
					&lt;/div&gt;

					&lt;div class="widget clearfix" style="margin-bottom: -20px;"&gt;

						&lt;div class="row"&gt;

							&lt;div class="col-md-6 clearfix bottommargin-sm"&gt;
								[
									
									
								](#)
								[Like us

on Facebook](https://www.facebook.com/Sanilac-County-Historic-Village-Museum-124295187620988/)
</div>

						&lt;/div&gt;

					&lt;/div&gt;

				&lt;/div&gt;

			&lt;/div&gt;&lt;!-- .footer-widgets-wrap end --&gt;

		&lt;/div&gt;

		&lt;!-- Copyrights
		============================================= --&gt;
		&lt;div id="copyrights"&gt;

			&lt;div class="container clearfix"&gt;

				&lt;div class="col_half"&gt;
					Sanilac County Historic Village & Museum &copy; 2013 - All rights reserved.&lt;br&gt;
					The museum is responsible for the content of this site.&lt;br&gt;
					&lt;div class="copyright-links"&gt;[Terms of Use](terms.php) / [Privacy Policy](privacy.php)&lt;/div&gt;
				&lt;/div&gt;

				&lt;div class="col_half col_last tright"&gt;
					&lt;div class="fright clearfix"&gt;
						[
							
							
						](https://www.facebook.com/Sanilac-County-Historic-Village-Museum-124295187620988/)

						[
							
							
						](https://twitter.com/HistoricSanilac)

						[
							
							
						](https://www.youtube.com/user/HistoricalSanilac/)
					&lt;/div&gt;

				&lt;/div&gt;

			&lt;/div&gt;

		&lt;/div&gt;&lt;!-- #copyrights end --&gt;

	&lt;/footer&gt;&lt;!-- #footer end --&gt;

&lt;/div&gt;&lt;!-- #wrapper end --&gt;

&lt;!-- Go To Top
============================================= --&gt;
&lt;div id="gotoTop" class="icon-angle-up"&gt;&lt;/div&gt;

<!-- External JavaScripts
============================================= -->
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/plugins.js"></script>

&lt;!-- Footer Scripts
============================================= --&gt;
&lt;script type="text/javascript" src="js/functions.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="https://maps.google.com/maps/api/js?key=AIzaSyCFjUcnakAPOlpem6tU3bvoxLzgVpbpkCI"&gt;&lt;/script&gt;

<script type="text/javascript" src="js/jquery.gmap.js"></script>
<script type="text/javascript">

$('#google-map1').gMap({

	 address: 'Port Sanilac, Michigan',
	 maptype: 'ROADMAP',
	 zoom: 14,
	 markers: [
		{
			address: "Port Sanilac, Michigan"
		}
	 ],
	 doubleclickzoom: false,
	 controls: {
		 panControl: true,
		 zoomControl: true,
		 mapTypeControl: true,
		 scaleControl: false,
		 streetViewControl: false,
		 overviewMapControl: false
	 }

});

</script>

&lt;/body&gt;

</html>

SSemicolon WebSTAFFApr 12, 2017

Hello,

Yes Absolutely! As @davidcladd (Mychael) suggested, moving the Google Maps JS Code to the bottom of the Page after the js/functions.js JS File Linking, will definitely fix your issue!

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard