Jump to content

[SOLVED] Change default location on stores.js


Recommended Posts

post-716917-0-25325100-1384976382_thumb.pngI need to change the default map or location that is showed on the stores.js module. When you click in 'our stores' in homepage.

 

I've seen the .js file, but i don't know where i can load my map ID or change the actual one.

 

Anyone knows a way to accomplish this?

Edited by vekia (see edit history)
Link to comment
Share on other sites

I mean, of course i can zoom, but my point is, the default map appears really far from the point, well just curious if i can tweak that, if not it's just ok.

 

you an change zoom in /themes/YOUR_THEME/js/stores.js file

there is a code like:

 

$(document).ready(function()
{
	map = new google.maps.Map(document.getElementById('map'), {
		center: new google.maps.LatLng(defaultLat, defaultLong),
		zoom: 10,
		mapTypeId: 'roadmap',
		mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU}
	});

just change zoom: 10, param :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...