prestashop_newuser Posted September 5, 2013 Share Posted September 5, 2013 Hi, I am doing a small module in prestashop. I have loaded http://gmap3.net/ in backend to show the store map to admin. My code for jquery is like this jQuery(document).ready(function() { jQuery('#storemap').blur(function() { //console.log('hello'); $("#test").gmap3({ marker:{ latLng: [46.578498,2.457275], options:{ draggable:true }, events:{ dragend: function(marker){ $(this).gmap3({ getaddress:{ latLng:marker.getPosition(), callback:function(results){ var map = $(this).gmap3("get"), infowindow = $(this).gmap3({get:"infowindow"}), content = results && results[1] ? results && results[1].formatted_address : "no address"; if (infowindow){ infowindow.open(map, marker); infowindow.setContent(content); } else { $(this).gmap3({ infowindow:{ anchor:marker, options:{content: content} } }); } } } }); } } }, map:{ options:{ zoom: 5 } } }); }); }); and after all when I saw console tab it showed me an error like this GET http://maps.googleapis.com/maps/api/js/StaticMapService.GetMapImage?1m2&1i245&2i106&2e1&3u2&4m2&1u548&2u512&5ui&1e0&5sen-US&6sus&10b1&token=17534 403 (Forbidden) main.js:80 I want to tell you that it was working perfectely fine before 2 days. When I saw it today it is showing the 403 forbiden error. Can someone kindly tell me what's the issue here? Any help and suggestions will be really appreciable. Thanks Link to comment Share on other sites More sharing options...
vekia Posted September 5, 2013 Share Posted September 5, 2013 where is the script to include url that you mentioned above? can you show it? if you try to open this url you will see this: The Google Maps API server rejected your request. The Google Maps JavaScript API must be downloaded directly from Google's servers. The Google Maps JavaScript API must be downloaded directly from Google's servers. Please see <a href="https://developers.google.com/maps/documentation/javascript/tutorial#Loading_the_Maps_API">instructions here</a>. Learn more: https://developers.google.com/maps/documentation/javascript/tutorial#Loading_the_Maps_API Link to comment Share on other sites More sharing options...
prestashop_newuser Posted September 5, 2013 Author Share Posted September 5, 2013 where is the script to include url that you mentioned above? can you show it? if you try to open this url you will see this: @vekia.. thank you I got it. I had made downloaded the google map code on my localhost and was using it on server. Now I just make the direct url to google map code and it worked finally... Link to comment Share on other sites More sharing options...
vekia Posted September 5, 2013 Share Posted September 5, 2013 nice know how thanks for sharing it im convinced that it will be helpful for other merchants with similar problem im going to mark this topic as [solved] best regards Link to comment Share on other sites More sharing options...
Recommended Posts