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年前245ビュー
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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ