Categories

Featured templates

Magento. How to change Google Map location (Home page)

Mary Gilmore March 31, 2015
Rating: 5.0/5. From 1 vote.
Please wait...

This tutorial shows how to change Google map location on home page in Magento.

Magento. How to change Google Map location (Home page)

In order to change map location on home page, you should perform the following:

Step 1. Locate the Google Map code in the template.

  1. Log into your Magento Admin.

  2. Navigate to CMS -> Static Blocks.

  3. Open the home_map static block and you will see the following piece of code for the Map:

    Magento. How to change Google Map location (Home page)1

Step 2. Set Latitude and Longitude for the location:

  1. Go to Google Maps Site.

  2. Find your location, right click it. Select ‘What’s Here’ option from the drop down menu:

    How to change map location on home page2

  3. With that done you will see the Latitude and Longitude of the location on the left of the page:

    Magento. How to change Google Map location (Home page)3

Step 3. Replace the default Latitude and Longitude with yours in CMS -> Static Blocks -> home_map:

Magento. How to change Google Map location (Home page)4

Note: The following line of code for the map:

var markCoord1 = new google.maps.LatLng(parseFloat(40.6422180), parseFloat(-73.9784068,14));

stands for the Google Map marker Latitude and Longtitude.

Feel free to check the detailed video tutorial below:

Magento. How to change Google Map location (Home page)

Templates for Magento
This entry was posted in Magento Tutorials and tagged google, home, Magento, map, page. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket