###前提・実現したいこと
GmapsにてGoogle mapを表示しています。
その際に、パソコン上では見れるのですが、androidでは一瞬表示されてエラーとなります。
FirefoxのConsoleで見てみたところ、
「Google maps API is required. Please register the following JavaScript Library https://maps.google.com/maps/api/js.」と表示されています。
原因として考えられるようなものをご存知の方がいましたらご教授ください。
よろしくお願いします。
###該当のソースコード
//読み込み(header。 gmaps.jsはhttp://hpneo.github.io/gmaps/を使用しています) <script type="text/javascript" src="//maps.googleapis.com/maps/api/js?key={{env("GOOGLE_API_KEY")}}"></script> <script src="{{asset("common/js/gmaps.js")}}" type="text/javascript"></script> <script> //挿入したい部分 <div class="googlemap" data_lat="35.6900742" data_lng="139.7126041"> <div class="dispmap_24945" tag="disp"></div> </div> //footer <script> $(document).ready(function(){ $.each($("div.googlemap"),function(){ var map = new GMaps({ div: "."+$(this).find("div").attr("class"), lat: $(this).attr("data_lat"), lng: $(this).attr("data_lng") }); map.addMarker({lat:$(this).attr("data_lat"),lng:$(this).attr("data_lng")}); }); }); </script>
###補足情報(言語/FW/ツール等のバージョンなど)
回答2件
あなたの回答
tips
プレビュー