Blame view

frontend/web/js/gmaps.init.js 679 Bytes
4acbd19d   Alexey Boroda   -Bar tabs
1
2
3
  $(
      function() {
  
83309611   Alexey Boroda   -Map in process
4
          function initMap() {
dac3d6cc   Alexey Boroda   -Map ready
5
6
7
8
9
              var myLatLng = {
                  lat: parseFloat(window.lat),
                  lng: parseFloat(window.lon)
              };
  
83309611   Alexey Boroda   -Map in process
10
11
              var map = new google.maps.Map(
                  document.getElementById('map'), {
dac3d6cc   Alexey Boroda   -Map ready
12
                      center: myLatLng,
4acbd19d   Alexey Boroda   -Bar tabs
13
              scrollwheel: false,
dac3d6cc   Alexey Boroda   -Map ready
14
                      zoom: 14
83309611   Alexey Boroda   -Map in process
15
16
                  }
              );
dac3d6cc   Alexey Boroda   -Map ready
17
18
19
20
21
22
23
24
25
  
              var marker = new google.maps.Marker(
                  {
                      position: myLatLng,
                      map: map,
                      title: 'Hello World!'
                  }
              );
  
4acbd19d   Alexey Boroda   -Bar tabs
26
          }
4acbd19d   Alexey Boroda   -Bar tabs
27
  
83309611   Alexey Boroda   -Map in process
28
29
30
          window.initMap = initMap();
      }
  );