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


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,

<script src=''></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=''></a> <script type='text/javascript' src=''></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(){,marker);});,marker);}google.maps.event.addDomListener(window, 'load', init_map);</script>
feita há 6 anos308 visualizações
1 Resposta

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

respondido há 6 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas