Blame view

frontend/web/js/gmaps.init.js 1.62 KB
9870b2b4   Alexey Boroda   -In process
1
  $(function () {
ae432de6   Alexey Boroda   first commit
2
  
9870b2b4   Alexey Boroda   -In process
3
      map();
ae432de6   Alexey Boroda   first commit
4
  
9870b2b4   Alexey Boroda   -In process
5
  });
ae432de6   Alexey Boroda   first commit
6
  
9870b2b4   Alexey Boroda   -In process
7
  /* map */
ae432de6   Alexey Boroda   first commit
8
  
9870b2b4   Alexey Boroda   -In process
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
  function map() {
  	var newLat = 50.4534482;
  	var lng = 30.4249462;
      // 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}]}];
      var styles = [{
  		stylers: [
  			{ saturation: -100 }
  		]
  	}];
      map = new GMaps({
  	el: '#map',
  	lat: newLat,
  	lng: lng,
  	zoomControl: true,
  	zoomControlOpt: {
  	    style: 'SMALL',
  	    position: 'TOP_LEFT'
  	},
  	panControl: false,
  	streetViewControl: false,
  	mapTypeControl: false,
  	overviewMapControl: false,
  	scrollwheel: false,
  	draggable: false,
  	styles: styles,
  	zoom: 14
      });
ae432de6   Alexey Boroda   first commit
36
  
9870b2b4   Alexey Boroda   -In process
37
38
39
40
41
42
43
44
45
46
47
48
      var image = 'img/marker2.png';
  
      map.addMarker({
  	lat: newLat,
  	lng: lng,
  	icon: image/* ,
  	 title: '',
  	 infoWindow: {
  	 content: '<p>HTML Content</p>'
  	 }*/
      });
  }