PageSourceSearch

https://www.aromabrescia.it/script/map.js

js aromabrescia.it collected 2026-10-06 10:13:25 UTC 11,954 bytes, 548 lines download raw bytes

1var stileMappa = [
2  {
3      "elementType": "geometry",
4      "stylers": [
5        {
6            "color": "#f5f5f5"
7        }
8      ]
9  },
10  {
11      "elementType": "labels.icon",
12      "stylers": [
13        {
14            "visibility": "off"
15        }
16      ]
17  },
18  {
19      "elementType": "labels.text.fill",
20      "stylers": [
21        {
22            "color": "#616161"
23        }
24      ]
25  },
26  {
27      "elementType": "labels.text.stroke",
28      "stylers": [
29        {
30            "color": "#f5f5f5"
31        }
32      ]
33  },
34  {
35      "featureType": "administrative.land_parcel",
36      "elementType": "labels.text.fill",
37      "stylers": [
38        {
39            "color": "#bdbdbd"
40        }
41      ]
42  },
43  {
44      "featureType": "poi",
45      "elementType": "geometry",
46      "stylers": [
47        {
48            "color": "#eeeeee"
49        }
50      ]
51  },
52  {
53      "featureType": "poi",
54      "elementType": "labels.text.fill",
55      "stylers": [
56        {
57            "color": "#757575"
58        }
59      ]
60  },
61  {
62      "featureType": "poi.business",
63      "stylers": [
64        {
65            "visibility": "off"
66        }
67      ]
68  },
69  {
70      "featureType": "poi.park",
71      "elementType": "geometry",
72      "stylers": [
73        {
74            "color": "#e5e5e5"
75        }
76      ]
77  },
78  {
79      "featureType": "poi.park",
80      "elementType": "labels.text",
81      "stylers": [
82        {
83            "visibility": "off"
84        }
85      ]
86  },
87  {
88      "featureType": "poi.park",
89      "elementType": "labels.text.fill",
90      "stylers": [
91        {
92            "color": "#9e9e9e"
93        }
94      ]
95  },
96  {
97      "featureType": "road",
98      "elementType": "geometry",
99      "stylers": [
100        {
101            "color": "#ffffff"
102        }
103      ]
104  },
105  {
106      "featureType": "road.arterial",
107      "elementType": "labels.text.fill",
108      "stylers": [
109        {
110            "color": "#757575"
111        }
112      ]
113  },
114  {
115      "featureType": "road.highway",
116      "elementType": "geometry",
117      "stylers": [
118        {
119            "color": "#dadada"
120        }
121      ]
122  },
123  {
124      "featureType": "road.highway",
125      "elementType": "labels.text.fill",
126      "stylers": [
127        {
128            "color": "#616161"
129        }
130      ]
131  },
132  {
133      "featureType": "road.local",
134      "elementType": "labels.text.fill",
135      "stylers": [
136        {
137            "color": "#9e9e9e"
138        }
139      ]
140  },
141  {
142      "featureType": "transit.line",
143      "elementType": "geometry",
144      "stylers": [
145        {
146            "color": "#e5e5e5"
147        }
148      ]
149  },
150  {
151      "featureType": "transit.station",
152      "elementType": "geometry",
153      "stylers": [
154        {
155            "color": "#eeeeee"
156        }
157      ]
158  },
159  {
160      "featureType": "water",
161      "elementType": "geometry",
162      "stylers": [
163        {
164            "color": "#c9c9c9"
165        }
166      ]
167  },
168  {
169      "featureType": "water",
170      "elementType": "labels.text.fill",
171      "stylers": [
172        {
173            "color": "#9e9e9e"
174        }
175      ]
176  }
177]
178
179var stileMappaProdotti = [
180  {
181      "elementType": "geometry",
182      "stylers": [
183        {
184            "color": "#f5f5f5"
185        }
186      ]
187  },
188  {
189      "elementType": "labels",
190      "stylers": [
191        {
192            "visibility": "off"
193        }
194      ]
195  },
196  {
197      "elementType": "labels.icon",
198      "stylers": [
199        {
200            "visibility": "off"
201        }
202      ]
203  },
204  {
205      "elementType": "labels.text.fill",
206      "stylers": [
207        {
208            "color": "#616161"
209        }
210      ]
211  },
212  {
213      "elementType": "labels.text.stroke",
214      "stylers": [
215        {
216            "color": "#f5f5f5"
217        }
218      ]
219  },
220  {
221      "featureType": "administrative",
222      "elementType": "geometry",
223      "stylers": [
224        {
225            "visibility": "off"
226        }
227      ]
228  },
229  {
230      "featureType": "administrative.land_parcel",
231      "stylers": [
232        {
233            "visibility": "off"
234        }
235      ]
236  },
237  {
238      "featureType": "administrative.land_parcel",
239      "elementType": "labels.text.fill",
240      "stylers": [
241        {
242            "color": "#bdbdbd"
243        }
244      ]
245  },
246  {
247      "featureType": "administrative.neighborhood",
248      "stylers": [
249        {
250            "visibility": "off"
251        }
252      ]
253  },
254  {
255      "featureType": "poi",
256      "stylers": [
257        {
258            "visibility": "off"
259        }
260      ]
261  },
262  {
263      "featureType": "poi",
264      "elementType": "geometry",
265      "stylers": [
266        {
267            "color": "#eeeeee"
268        }
269      ]
270  },
271  {
272      "featureType": "poi",
273      "elementType": "labels.text.fill",
274      "stylers": [
275        {
276            "color": "#757575"
277        }
278      ]
279  },
280  {
281      "featureType": "poi.park",
282      "elementType": "geometry",
283      "stylers": [
284        {
285            "color": "#e5e5e5"
286        }
287      ]
288  },
289  {
290      "featureType": "poi.park",
291      "elementType": "labels.text.fill",
292      "stylers": [
293        {
294            "color": "#9e9e9e"
295        }
296      ]
297  },
298  {
299      "featureType": "road",
300      "stylers": [
301        {
302            "visibility": "off"
303        }
304      ]
305  },
306  {
307      "featureType": "road",
308      "elementType": "geometry",
309      "stylers": [
310        {
311            "color": "#ffffff"
312        }
313      ]
314  },
315  {
316      "featureType": "road",
317      "elementType": "labels.icon",
318      "stylers": [
319        {
320            "visibility": "off"
321        }
322      ]
323  },
324  {
325      "featureType": "road.arterial",
326      "elementType": "labels.text.fill",
327      "stylers": [
328        {
329            "color": "#757575"
330        }
331      ]
332  },
333  {
334      "featureType": "road.highway",
335      "elementType": "geometry",
336      "stylers": [
337        {
338            "color": "#dadada"
339        }
340      ]
341  },
342  {
343      "featureType": "road.highway",
344      "elementType": "labels.text.fill",
345      "stylers": [
346        {
347            "color": "#616161"
348        }
349      ]
350  },
351  {
352      "featureType": "road.local",
353      "elementType": "labels.text.fill",
354      "stylers": [
355        {
356            "color": "#9e9e9e"
357        }
358      ]
359  },
360  {
361      "featureType": "transit",
362      "stylers": [
363        {
364            "visibility": "off"
365        }
366      ]
367  },
368  {
369      "featureType": "transit.line",
370      "elementType": "geometry",
371      "stylers": [
372        {
373            "color": "#e5e5e5"
374        }
375      ]
376  },
377  {
378      "featureType": "transit.station",
379      "elementType": "geometry",
380      "stylers": [
381        {
382            "color": "#eeeeee"
383        }
384      ]
385  },
386  {
387      "featureType": "water",
388      "elementType": "geometry",
389      "stylers": [
390        {
391            "color": "#a0cee4"
392        }
393      ]
394  },
395  {
396      "featureType": "water",
397      "elementType": "labels.text.fill",
398      "stylers": [
399        {
400            "color": "#9e9e9e"
401        }
402      ]
403  }
404];
405
406// Mappa
407function initMap() {
408    var s = document.createElement('script');
409    s.type = 'text/javascript';
410    s.src = path + 'script/infobox_packed.min.js';
411    $('head').append(s);
412
413    var myPosition = { lat: 45.537015, lng: 10.228753 };
414    var myCenter = { lat: 45.539915, lng: 10.228753 };
415    var isDraggable = $(window).width() > 768 ? true : false;
416
417    //questa disegna la mappa e configura le opzioni generali
418    var map = new google.maps.Map(document.getElementById('mappa'), {
419        zoom: 15,
420        center: myCenter,
421        disableDefaultUI: true,
422        zoomControl: true,
423        scrollwheel: false,
424        draggable: isDraggable,
425        styles: stileMappa
426    });
427
428    var marker = new google.maps.Marker({
429        position: myPosition,
430        map: map,
431        title: 'Ristorante Aroma Brescia',
432        icon: path + 'images/layout/marker.png'
433    });
434
435    var boxMarker = document.createElement("div");
436    boxMarker.className = 'boxMappa';
437    boxMarker.innerHTML = "<img src='" + path + "images/layout/logo-aroma-no-testo.svg' alt='Logo Ristorante Aroma Brescia' /><br /><div class='text-uppercase text-center'>Tel. +39 030 8772319<br />via trieste 56/b<br />25121 - brescia<br />Italy</div>";
438
439    var ibOptions = {
440        content: boxMarker,
441        disableAutoPan: false,
442        maxWidth: 0,
443        pixelOffset: new google.maps.Size(-100, -152),
444        zIndex: 10000,
445        boxStyle: {
446            opacity: 1,
447            width: '200px',
448            height: '125px'
449        },
450        closeBoxMargin: '8px 8px 0 0',
451        closeBoxURL: path + 'images/layout/chiudi-mappa.png',
452        infoBoxClearance: new google.maps.Size(1, 1),
453        isHidden: false,
454        pane: 'floatPane',
455        enableEventPropagation: false
456    };
457
458    var ib = new InfoBox(ibOptions);
459    ib.open(map, marker);
460
461    google.maps.event.addListener(marker, 'click', function () {
462        ib.close();
463        ib.open(map, marker);
464    });
465}
466
467
468// Mappa prodotti
469function initProdotti() {
470    var s = document.createElement('script');
471    s.type = 'text/javascript';
472    s.src = path + 'script/infobox_packed.min.js';
473    $('head').append(s);
474
475    var myCenter = { lat: 49.731123, lng: -28.982928 };
476    var myCenterMobile = { lat: 49.731123, lng: 4.598280 };
477    var isDraggable = true;
478    var isZoomable = $(window).width() > 768 ? true : false;
479
480    //questa disegna la mappa e configura le opzioni generali
481    var map = new google.maps.Map(document.getElementById('mappaProdotti'), {
482        zoom: 4,
483        center: $(window).width() > 768 ? myCenter : myCenterMobile,
484        disableDefaultUI: true,
485        zoomControl: isZoomable,
486        scrollwheel: false,
487        draggable: isDraggable,
488        gestureHandling: 'cooperative',
489        minZoom: 4,
490        maxZoom: $(window).width() > 768 ? 5 : 4,
491        styles: stileMappaProdotti
492    });
493
494    setMarkers(map, elencoProdotti);
495}
496
497var infoBoxes = [];
498
499function setMarkers(map, locations) {
500    for (var i = 0; i < locations.length; i++) {
501        (function (i) {
502            var punto = locations[i];
503            var marker;
504
505            marker = new google.maps.Marker({
506                position: { lat: punto[2], lng: punto[3] },
507                map: map,
508                title: punto[0],
509                icon: path + 'public/prodotti/' + punto[1],
510                zIndex: i,
511            });
512
513            var boxText = document.createElement("div");
514            boxText.className = 'boxProdotto';
515            boxText.innerHTML = "<strong>" + punto[0] + "</strong><br />" + punto[4];
516
517            var ibOptions = {
518                content: boxText,
519                disableAutoPan: false,
520                maxWidth: 0,
521                pixelOffset: new google.maps.Size(20, -140),
522                zIndex: 10000,
523                boxStyle: {
524                    opacity: 1,
525                    width: '160px',
526                    height: '60px'
527                },
528                closeBoxMargin: '8px 8px 0 0',
529                closeBoxURL: '',
530                infoBoxClearance: new google.maps.Size(1, 1),
531                isHidden: false,
532                pane: 'floatPane',
533                enableEventPropagation: false
534            };
535
536            var ib = new InfoBox(ibOptions);
537            infoBoxes.push(ib);
538
539            google.maps.event.addListener(marker, 'click', function () {
540                $.each(infoBoxes, function (index) {
541                    infoBoxes[index].close();
542                });
543
544                ib.open(map, marker);
545            });
546        })(i);
547    }
548}

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.