Red map icon not showing on Google map

3 replies · opened Jan 16, 2019

Ccab12Jan 16, 2019

I'm having a problem getting the red map icon to show up on my Google map on my contact form.

I'm using the following code (a few things redacted for privacy)...

<script src="js/functions.js"></script>

&lt;script src="https://maps.google.com/maps/api/js?key=I have a current API key"&gt;&lt;/script&gt;
&lt;script src="js/jquery.gmap.js"&gt;&lt;/script&gt;

&lt;script&gt;

	jQuery('#google-map').gMap({ 

		latitude: xx.xxxxxx,
		longitude: -xxx.xxxxx,
		maptype: 'ROADMAP',
		zoom: 15,
		markers: [
			{
				address: "USA",
                html: "USA",
				icon: {
					image: "img/map-icon-red.png",
					iconsize: [32, 39],
					iconanchor: [13,39]
				}
			}
		],
		doubleclickzoom: false,
		controls: {
			panControl: true,
			zoomControl: true,
			mapTypeControl: true,
			scaleControl: false,
			streetViewControl: false,
			overviewMapControl: false
		}
	});

&lt;/script&gt;

Thanks for any help you can provide...

SSemicolon WebSTAFFJan 17, 2019

Hello,

Please provide us with a Live URL so that we can check out the exact issue and provide you with more assistance on this. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

SSemicolon WebSTAFFJan 22, 2019

Hello,

We have checked out your Website but unfortunately, your Website does not use the Canvas Template. Additionally, the Google Maps API Key you are using is not valid. Please check your Browser's Developer Console for more information.

Please provide us with a Valid Live URL so that we can check out the exact issue and provide you with more assistance on this. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

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