PageSourceSearch

https://thinkit.rs/js/maps/map-color-1.js

js thinkit.rs collected 2026-10-02 00:03:55 UTC 7,867 bytes, 296 lines download raw bytes

1// ------------------------------------------------
2// Project Name: Oomph - Coming Soon & Landing Page Template
3// Project Description: Oomph - awesome coming soon template to kick-start your project
4// Tags: mix_design, oomph, coming soon, under construction, template, coming soon page, html5, css3
5// Version: 3.0.1
6// Build Date: December 2020
7// Last Update: October 2022
8// This product is available exclusively on Themeforest
9// Author: mix_design
10// Author URI: https://themeforest.net/user/mix_design
11// File name: map-color-1.js
12// ------------------------------------------------
13
14// ------------------------------------------------
15// Table of Contents
16// ------------------------------------------------
17//
18//  1. Google Map Parameters
19//  2. Google Map Custom Marker Icon
20//  3. Style Of The Map
21//  4. Google Map Options
22//  5. Inizialize The Map
23//  6. Custom Marker
24//  7. Custom zoom-in/zoom-out Buttons
25//
26// ------------------------------------------------
27// Table of Contents End
28// ------------------------------------------------
29
30
31$(function() {
32  // Insert Your Google Map Parameters
33  var latitude = 44.8060155,
34    longitude = 20.4497889,
35    map_zoom = 15;
36
37  // Google Map Custom Marker Icon
38  var is_internetExplorer11= navigator.userAgent.toLowerCase().indexOf('trident') > -1;
39  var marker_url = ( is_internetExplorer11 ) ? 'img/location/color-1/location.png' : 'img/location/color-1/location.svg';
40
41    var main_color = '#160c37',
42      saturation_value= 1,
43      brightness_value= 5;
44
45      // Style Of The Map
46      var style= [
47        {
48          "elementType": "geometry",
49          "stylers": [
50            {
51              "color": "#4C4C4C"
52            }
53          ]
54        },
55        {
56          "elementType": "labels.icon",
57          "stylers": [
58            {
59              "visibility": "off"
60            }
61          ]
62        },
63        {
64          "elementType": "labels.text.fill",
65          "stylers": [
66            {
67              "color": "#d3cdea"
68            }
69          ]
70        },
71        {
72          "elementType": "labels.text.stroke",
73          "stylers": [
74            {
75              "color": "#2F2F2F"
76            }
77          ]
78        },
79        {
80          "featureType": "administrative.land_parcel",
81          "stylers": [
82            {
83              "visibility": "off"
84            }
85          ]
86        },
87        {
88          "featureType": "administrative.locality",
89          "elementType": "labels.text.fill",
90          "stylers": [
91            {
92              "color": "#cfcbdc"
93            }
94          ]
95        },
96        {
97          "featureType": "administrative.locality",
98          "elementType": "labels.text.stroke",
99          "stylers": [
100            {
101              "color": "#2F2F2F"
102            }
103          ]
104        },
105        {
106          "featureType": "landscape",
107          "stylers": [
108            {
109              "color": "#2F2F2F"
110            }
111          ]
112        },
113        {
114          "featureType": "poi",
115          "elementType": "geometry",
116          "stylers": [
117            {
118              "color": "#4C4C4C"
119            }
120          ]
121        },
122        {
123          "featureType": "poi",
124          "elementType": "labels.text.fill",
125          "stylers": [
126            {
127              "color": "#c9bef4"
128            }
129          ]
130        },
131        {
132          "featureType": "poi.park",
133          "elementType": "labels.text.fill",
134          "stylers": [
135            {
136              "color": "#b2aacf"
137            }
138          ]
139        },
140        {
141          "featureType": "poi.park",
142          "elementType": "labels.text.stroke",
143          "stylers": [
144            {
145              "color": "#2F2F2F"
146            }
147          ]
148        },
149        {
150          "featureType": "road",
151          "elementType": "geometry.fill",
152          "stylers": [
153            {
154              "color": "#424243"
155            }
156          ]
157        },
158        {
159          "featureType": "road",
160          "elementType": "labels.text.fill",
161          "stylers": [
162            {
163              "color": "#a59cc4"
164            }
165          ]
166        },
167        {
168          "featureType": "road.arterial",
169          "elementType": "geometry",
170          "stylers": [
171            {
172              "color": "#4C4C4C"
173            }
174          ]
175        },
176        {
177          "featureType": "road.highway",
178          "elementType": "geometry.fill",
179          "stylers": [
180            {
181              "color": "#4C4C4C"
182            }
183          ]
184        },
185        {
186          "featureType": "road.highway",
187          "elementType": "geometry.stroke",
188          "stylers": [
189            {
190              "color": "#4C4C4C"
191            }
192          ]
193        },
194        {
195          "featureType": "road.highway.controlled_access",
196          "elementType": "geometry.fill",
197          "stylers": [
198            {
199              "color": "#4C4C4C"
200            }
201          ]
202        },
203        {
204          "featureType": "road.highway.controlled_access",
205          "elementType": "geometry.stroke",
206          "stylers": [
207            {
208              "color": "#4C4C4C"
209            }
210          ]
211        },
212        {
213          "featureType": "road.local",
214          "elementType": "labels.text.fill",
215          "stylers": [
216            {
217              "color": "#b2abc9"
218            }
219          ]
220        },
221        {
222          "featureType": "transit",
223          "elementType": "labels.text.fill",
224          "stylers": [
225            {
226              "color": "#9e97b4"
227            }
228          ]
229        },
230        {
231          "featureType": "water",
232          "elementType": "geometry",
233          "stylers": [
234            {
235              "color": "#6A6A6A"
236            }
237          ]
238        },
239        {
240          "featureType": "water",
241          "elementType": "labels.text.fill",
242          "stylers": [
243            {
244              "color": "#615884"
245            }
246          ]
247        }
248      ];
249
250      // Google Map Options
251      var map_options = {
252            center: new google.maps.LatLng(latitude, longitude),
253            zoom: map_zoom,
254            gestureHandling: 'cooperative',
255            panControl: false,
256            zoomControl: false,
257            mapTypeControl: false,
258            streetViewControl: false,
259            mapTypeId: google.maps.MapTypeId.ROADMAP,
260            scrollwheel: false,
261            styles: style,
262        }
263
264      // Inizialize The Map
265      var map = new google.maps.Map(document.getElementById('google-container'), map_options);
266
267      // Custom Marker
268      var marker = new google.maps.Marker({
269          position: new google.maps.LatLng(latitude, longitude),
270          map: map,
271          visible: true,
272        icon: marker_url,
273      });
274
275      // Custom zoom-in/zoom-out Buttons
276      function CustomZoomControl(controlDiv, map) {
277
278          var controlUIzoomIn= document.getElementById('zoom-in'),
279            controlUIzoomOut= document.getElementById('zoom-out');
280          controlDiv.appendChild(controlUIzoomIn);
281          controlDiv.appendChild(controlUIzoomOut);
282
283        google.maps.event.addDomListener(controlUIzoomIn, 'click', function() {
284            map.setZoom(map.getZoom()+1)
285        });
286        google.maps.event.addDomListener(controlUIzoomOut, 'click', function() {
287            map.setZoom(map.getZoom()-1)
288        });
289      }
290
291      var zoomControlDiv = document.createElement('div');
292      var zoomControl = new CustomZoomControl(zoomControlDiv, map);
293
294        map.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(zoomControlDiv);
295
296});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.