{"id":42895,"date":"2015-01-23T07:39:02","date_gmt":"2015-01-23T12:39:02","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=42895"},"modified":"2015-05-05T09:48:00","modified_gmt":"2015-05-05T13:48:00","slug":"js-animated-change-google-map-location-based-js-api","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/js-animated-change-google-map-location-based-js-api.html","title":{"rendered":"JS Animated. How to change Google map location (based on JS API)"},"content":{"rendered":"<a href=\"http:\/\/www.youtube.com\/watch?v=98KA-m2CLX4?width=1280&amp;height=720\" rel=\"prettyPhoto\">JS Animated. How to change Google map location (based on JS API)<\/a>\r\n\r\n<p>This tutorial shows how to change Google map location in JS Animated template.<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/01\/Js-Animated.-How-to-change-google-map_1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/01\/Js-Animated.-How-to-change-google-map_1-300x168.jpg\" alt=\"Js Animated. How to change google map_1\" width=\"300\" height=\"168\" class=\"aligncenter size-medium wp-image-42897\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/01\/Js-Animated.-How-to-change-google-map_1-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/01\/Js-Animated.-How-to-change-google-map_1-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/01\/Js-Animated.-How-to-change-google-map_1.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<ol>\r\n<li><p>Open file that holds Google map location. It is <strong>google-map.js<\/strong> file located in <strong>js\/<\/strong> file.<\/p><\/li> \r\n<li><p>Look for the line:<\/p>\r\n\r\n<pre class=\"brush:js\">var coordData = new google.maps.LatLng(parseFloat(51.506637), parseFloat(-0.128378));<\/pre> <p>You will need to change latitude and longitude value:<\/p>\r\n \r\n<pre class=\"brush:js\">(parseFloat(51.506637), parseFloat(-0.128378)<\/pre>\r\n \r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/01\/Js-Animated.-How-to-change-google-map_2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/01\/Js-Animated.-How-to-change-google-map_2-300x168.jpg\" alt=\"Js Animated. How to change google map_2\" width=\"300\" height=\"168\" class=\"aligncenter size-medium wp-image-42900\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/01\/Js-Animated.-How-to-change-google-map_2-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/01\/Js-Animated.-How-to-change-google-map_2-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/01\/Js-Animated.-How-to-change-google-map_2.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li><p>Now you need to find out the latitude and longitude at <a href=\"https:\/\/www.google.com.ua\/maps\/\" target=\"_blank\">Google Maps<\/a> website.<\/p>\r\n<ul>\r\n<li><p>Right-click the place or area on the map.<\/p><\/li>\r\n<li><p>Select <strong> What&#8217;s here?<\/strong>:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/01\/Js-Animated.-How-to-change-google-map_3.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/01\/Js-Animated.-How-to-change-google-map_3-300x168.jpg\" alt=\"Js Animated. How to change google map_3\" width=\"300\" height=\"168\" class=\"aligncenter size-medium wp-image-42898\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/01\/Js-Animated.-How-to-change-google-map_3-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/01\/Js-Animated.-How-to-change-google-map_3-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/01\/Js-Animated.-How-to-change-google-map_3.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li> \r\n<li><p>Under the search box, an info card with coordinates will appear:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/01\/Js-Animated.-How-to-change-google-map_4.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/01\/Js-Animated.-How-to-change-google-map_4-300x168.jpg\" alt=\"Js Animated. How to change google map_4\" width=\"300\" height=\"168\" class=\"aligncenter size-medium wp-image-42901\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/01\/Js-Animated.-How-to-change-google-map_4-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/01\/Js-Animated.-How-to-change-google-map_4-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/01\/Js-Animated.-How-to-change-google-map_4.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<\/ul>\r\n<\/li>\r\n<li><p>Enter the new latitude and longitude to <strong>google-map.js<\/strong> file and save changes.<\/p><\/li>\r\n<li><p>Refresh the <strong>Contact us<\/strong> page of your website to see the changes.<\/p><\/li>\r\n<\/ol>\r\n\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=98KA-m2CLX4?width=1280&amp;height=720\" rel=\"prettyPhoto\">JS Animated. How to change Google map location (based on JS API)<\/a>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows how to change Google map location in JS Animated template.<\/p>\n","protected":false},"author":57,"featured_media":43143,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1016],"tags":[1102,929,1113],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/42895"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/57"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=42895"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/42895\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/43143"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=42895"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=42895"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=42895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}