Categories

Featured templates

JS Animated. How to change Google map location (based on JS API)

Eva Fox January 23, 2015
Rating: 5.0/5. From 1 vote.
Please wait...
JS Animated. How to change Google map location (based on JS API)

This tutorial shows how to change Google map location in JS Animated template.

Js Animated. How to change google map_1
  1. Open file that holds Google map location. It is google-map.js file located in js/ file.

  2. Look for the line:

    var coordData = new google.maps.LatLng(parseFloat(51.506637), parseFloat(-0.128378));

    You will need to change latitude and longitude value:

    (parseFloat(51.506637), parseFloat(-0.128378)
    Js Animated. How to change google map_2
  3. Now you need to find out the latitude and longitude at Google Maps website.

    • Right-click the place or area on the map.

    • Select What’s here?:

      Js Animated. How to change google map_3
    • Under the search box, an info card with coordinates will appear:

      Js Animated. How to change google map_4
  4. Enter the new latitude and longitude to google-map.js file and save changes.

  5. Refresh the Contact us page of your website to see the changes.

Feel free to check the detailed video tutorial below:

JS Animated. How to change Google map location (based on JS API)
This entry was posted in JS Animated tutorials and tagged api, google, map. 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