Blame view

frontend/web/js/gmaps.init.js 2.61 KB
4acbd19d   Alexey Boroda   -Bar tabs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
  $(
      function() {
  
          map();
  
      }
  );
  
  /* map */
  
  function map() {
  
      var styles = [
          {
              "featureType": "landscape",
              "stylers": [
                  {"saturation": -100},
                  {"lightness": 65},
                  {"visibility": "on"}
              ]
          },
          {
              "featureType": "poi",
              "stylers": [
                  {"saturation": -100},
                  {"lightness": 51},
                  {"visibility": "simplified"}
              ]
          },
          {
              "featureType": "road.highway",
              "stylers": [
                  {"saturation": -100},
                  {"visibility": "simplified"}
              ]
          },
          {
              "featureType": "road.arterial",
              "stylers": [
                  {"saturation": -100},
                  {"lightness": 30},
                  {"visibility": "on"}
              ]
          },
          {
              "featureType": "road.local",
              "stylers": [
                  {"saturation": -100},
                  {"lightness": 40},
                  {"visibility": "on"}
              ]
          },
          {
              "featureType": "transit",
              "stylers": [
                  {"saturation": -100},
                  {"visibility": "simplified"}
              ]
          },
          {
              "featureType": "administrative.province",
              "stylers": [ {"visibility": "off"} ]
          },
          {
              "featureType": "water",
              "elementType": "labels",
              "stylers": [
                  {"visibility": "on"},
                  {"lightness": -25},
                  {"saturation": -100}
              ]
          },
          {
              "featureType": "water",
              "elementType": "geometry",
              "stylers": [
                  {"hue": "#ffff00"},
                  {"lightness": -25},
                  {"saturation": -97}
              ]
          }
      ];
      map = new GMaps(
          {
              el: '#map',
              lat: -12.043333,
              lng: -77.028333,
              zoomControl: true,
              zoomControlOpt: {
                  style: 'SMALL',
                  position: 'TOP_LEFT'
              },
              panControl: false,
              streetViewControl: false,
              mapTypeControl: false,
              overviewMapControl: false,
              scrollwheel: false,
              draggable: false,
              styles: styles
          }
      );
  
      var image = 'img/marker.png';
  
      map.addMarker(
          {
              lat: -12.043333,
              lng: -77.028333,
              icon: image/* ,
  	 title: '',
  	 infoWindow: {
  	 content: '<p>HTML Content</p>'
  	 }*/
          }
      );
  }