Error invoking google maps over https from a static html page in S3

0

Hi,
I am evaluating moving several basic static websites to aws S3 configured as static websites.
For the first website I am assessing everything works fine except the the html contact page that is using a basic https invocation to Google maps to show the address of the company and provide google maps support for navigation if required (see code section below).
While on the current web host provider this works without a problem, testing the same page using S3 website endpoint, the map is briefly displayed followed by an error.
Does S3 currently support this basic functionality?
Thanks in advance,
Marius


<script src='https://maps.googleapis.com/maps/api/js?v=3.exp'></script><div style='overflow:hidden;height:200px;width:500px;'><div id='gmap_canvas' style='height:200px;width:500px;'></div><style>#gmap_canvas img{max-width:none!important;background:none!important}</style></div> <a href='http://www.maps-generator.com/'>maps-generator.com</a> <script type='text/javascript' src='https://embedmaps.com/google-maps-authorization/script.js?id=9c492e410e2d2b157351569e0fa2f89886994e96'></script><script type='text/javascript'>function init_map(){var myOptions = {zoom:12,center:new google.maps.LatLng(43.7791911,-79.3990566),mapTypeId: google.maps.MapTypeId.ROADMAP};map = new google.maps.Map(document.getElementById('gmap_canvas'), myOptions);marker = new google.maps.Marker({map: map,position: new google.maps.LatLng(43.7791911,-79.3990566)});infowindow = new google.maps.InfoWindow({content:'<strong>Compoany Name Here</strong><br>110 Westhampton Dr<br>L4J7J6 Vaughan<br>'});google.maps.event.addListener(marker, 'click', function(){infowindow.open(map,marker);});infowindow.open(map,marker);}google.maps.event.addDomListener(window, 'load', init_map);</script>
질문됨 6년 전250회 조회
1개 답변
0

The issue was not actually with the S3, but to the fact that a new API key was required by Google maps.

답변함 6년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠