Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
malder1975 committed Oct 3, 2016
1 parent 97c8829 commit 714f688
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion frontend/views/layouts/vms.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,37 @@
</nav>-->
<?= $content; ?>
<div class="footer">
<?php
$this->registerJs("
var geocoder;
var map;
var marker;
var markers = [];
function initialize(){
var latlng = new google.maps.LatLng(59.9342802,30.335098600000038);
var options = {
zoom: 10,
center: latlng,
};
map = new google.maps.Map(document.getElementById('map_canvas'), options);
geocoder = new google.maps.Geocoder();
}
function DeleteMarkers() {
for (var i = 0; i < markers.length; i++) {
markers[i].setMap(null);
}
markers = [];
}
");
?>

<div id="yandex_map" style="width: 300px; height: 200px"></div>
<div id="yandex-map" style="width: 300px; height: 200px"></div>


</div>
Expand Down

0 comments on commit 714f688

Please sign in to comment.