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>
feita há 6 anos251 visualizações
1 Resposta
0

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