MAPG-7 refactor JS to be more readable

load Google Maps API async
This commit is contained in:
bence committed 2020-05-20 03:19:53 +02:00
1 parent 35c749bea4
commit c0ad64cbe5
2 files changed
+181 -181

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@
var mapArea = <?= $bounds->calculateApproximateArea() ?>;
var guessMapBounds = <?= $bounds->toJson() ?>;
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=<?= $_ENV['GOOGLE_MAPS_JS_API_KEY'] ?>"></script>
<script src="static/js/mapguesser.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=<?= $_ENV['GOOGLE_MAPS_JS_API_KEY'] ?>&callback=initialize"></script>
</body>
</html>