Google maps not centered

5 replies·opened Apr 11, 2017
C
compu_tekApr 11, 2017

Hi,

I need your help. I've created a project with one-page, all works fine, but the google maps dont show centered and half of map dosent show at all.
What am i doing wrong?

The website:
MyWebsiteLink

Best regards

C
compu_tekApr 12, 2017

Hi,

I really need help on this one.

Thanks

C
compu_tekApr 13, 2017

Hi there,

Any help please. Only showing half of the map...

Thanks

C
compu_tekApr 13, 2017

Hi there,

I found the error.

Thanks

S
SemiColonWebSTAFFApr 14, 2017

Hello,

We Really Apologize about the Delays!

Please replace the Maps JS Code in the assets/js/maps.js File with the following code:

jQuery(window).on( 'load', function(){
	jQuery('#headquarters-map').gMap({

		latitude: 41.5384656,
		longitude: -6.9586897,
		maptype: 'ROADMAP',
		zoom: 16,
		markers: [
			{
			latitude: 41.5384656,
			longitude: -6.9586897,
			}
		],
		doubleclickzoom: false,
		controls: {
			panControl: true,
			zoomControl: true,
			mapTypeControl: true,
			scaleControl: false,
			streetViewControl: false,
			overviewMapControl: false
		}
	});
});

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.

C
compu_tekApr 14, 2017

Thanks, works great.

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