MAPG-119 view and JS adaptations for new map creation

This commit is contained in:
bence committed 2020-06-10 23:32:38 +02:00
1 parent 6fc83c9459
commit 947ce6b183
2 files changed
+8 -3

No files matched your search

+2 -2
View File
@@ -62,9 +62,9 @@
</div>
<script>
var tileUrl = '<?= $_ENV['LEAFLET_TILESERVER_URL'] ?>';
var mapId = '<?= $mapId ?>';
var mapId = <?= $mapId ?>;
var mapBounds = <?= json_encode($bounds) ?>;
var places = <?= json_encode($places) ?>;
var places = <?= json_encode($places, JSON_FORCE_OBJECT) ?>;
</script>
<script src="/static/node_modules/leaflet/dist/leaflet.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=<?= $_ENV['GOOGLE_MAPS_JS_API_KEY'] ?>"></script>