{"id":19007,"date":"2012-05-30T05:21:23","date_gmt":"2012-05-30T09:21:23","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=19007"},"modified":"2015-09-18T06:52:02","modified_gmt":"2015-09-18T10:52:02","slug":"how-to-change-google-map-location-in-html-based-template-using-google-maps-api-v3","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/how-to-change-google-map-location-in-html-based-template-using-google-maps-api-v3.html","title":{"rendered":"How to change Google map location in HTML-based template using Google Maps API v3"},"content":{"rendered":"<p><strong>This tutorial shows how to change Google map location  using Google Maps API v3<\/strong><\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2012\/05\/default_location_google_map.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/05\/default_location_google_map-300x174.png\" alt=\"\" title=\"default_location_google_map\" width=\"300\" height=\"174\" class=\"alignnone size-medium wp-image-19008\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/default_location_google_map-300x174.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/default_location_google_map.png 978w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<p><strong>1.<\/strong> Open file that holds google map location. It can be  .html or .js file. In our case it is index-6.html<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2012\/05\/api_key_code_index.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/05\/api_key_code_index-300x105.png\" alt=\"\" title=\"api_key_code_index\" width=\"300\" height=\"105\" class=\"alignnone size-medium wp-image-19009\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/api_key_code_index-300x105.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/api_key_code_index.png 958w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<p><strong>2.<\/strong> We should generate Google Maps API v3 key and replace original key.<\/p>\r\n\r\n<p><strong>2.1. <\/strong>Please go to <a href=\"https:\/\/code.google.com\/apis\/console\" target=\"_blank\">https:\/\/code.google.com\/apis\/console<\/a> and Sign in using google account. Use Sign up button in case you do not have google account, accept Google policy.<\/p>\r\n<p><strong>2.2 . <\/strong>Create project<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2012\/05\/create_project.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/05\/create_project-300x124.png\" alt=\"\" title=\"create_project\" width=\"300\" height=\"124\" class=\"alignnone size-medium wp-image-19010\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/create_project-300x124.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/create_project-1024x425.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/create_project.png 1250w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<p><strong>2.3.<\/strong> Go to Services and turn on  Google Maps API v3 and Google Maps API v 2 (turn it on due to compatibility reasons). Please note that Maps API v 2  can be unavailable. In this case  enable just API v3 <\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2012\/05\/turn_on_api_services.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/05\/turn_on_api_services-300x109.png\" alt=\"\" title=\"turn_on_api_services\" width=\"300\" height=\"109\" class=\"alignnone size-medium wp-image-19011\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/turn_on_api_services-300x109.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/turn_on_api_services-1024x375.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/turn_on_api_services.png 1236w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<p><strong>2.4.<\/strong> Go to API Access and copy your API key<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2012\/05\/copy_api.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/05\/copy_api-300x162.png\" alt=\"\" title=\"copy_api\" width=\"300\" height=\"162\" class=\"alignnone size-medium wp-image-19012\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/copy_api-300x162.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/copy_api-1024x553.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/copy_api.png 1251w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<p><strong>3.<\/strong> Replace original API key with your one. <\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2012\/05\/modified_key.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/05\/modified_key-300x93.png\" alt=\"\" title=\"modified_key\" width=\"300\" height=\"93\" class=\"alignnone size-medium wp-image-19013\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/modified_key-300x93.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/modified_key.png 976w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<p><strong>4.<\/strong> Now we need to set Latitude and Longitude <\/p>\r\n<p><strong>4.1.<\/strong> Go to <a href=\"http:\/\/maps.google.com\/\" target=\"_blank\">http:\/\/maps.google.com\/<\/a> <\/p>\r\n\r\n<p><strong>4.2.<\/strong> Find your location and lick Link button, copy html code to new .html or .txt file.<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2012\/05\/map_location.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/05\/map_location-300x168.png\" alt=\"\" title=\"map_location\" width=\"300\" height=\"168\" class=\"alignnone size-medium wp-image-19014\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/map_location-300x168.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/map_location-1024x575.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/map_location.png 1250w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<p>Html code looks like on screenshot below:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2012\/05\/html_code_location.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/05\/html_code_location-300x25.png\" alt=\"\" title=\"html_code_location\" width=\"300\" height=\"25\" class=\"alignnone size-medium wp-image-19015\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/html_code_location-300x25.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/html_code_location.png 929w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<p>4.3. Set Latitude and Longitude in your file:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2012\/05\/modified_lat_long.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/05\/modified_lat_long-300x102.png\" alt=\"\" title=\"modified_lat_long\" width=\"300\" height=\"102\" class=\"alignnone size-medium wp-image-19017\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/modified_lat_long-300x102.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/modified_lat_long.png 477w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<p>5. Save changes and refresh your page<\/p>\r\n<a href=\"\/help\/wp-content\/uploads\/2012\/05\/modified_location_google_map.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/05\/modified_location_google_map-300x176.png\" alt=\"\" title=\"modified_location_google_map\" width=\"300\" height=\"176\" class=\"alignnone size-medium wp-image-19016\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/modified_location_google_map-300x176.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/modified_location_google_map.png 995w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n\r\n<a href=\"\/help\/files\/Html\/js_animated_google_map_api_3.htm\" target=\"blank\">How to change Google map location in HTML-based template using Google Maps API v3<\/a>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows how to change Google map location  using Google Maps API v3.<\/p>\n","protected":false},"author":39,"featured_media":19022,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1016,718,432,253],"tags":[1269,929,2411,1268,1113],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/19007"}],"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\/39"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=19007"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/19007\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/19022"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=19007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=19007"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=19007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}