PageSourceSearch

https://www.tredess.com/sites/all/modules/custom/tredess/js/home-map.js?tmogjk

js tredess.com collected 2026-10-05 23:33:29 UTC 2,688 bytes, 92 lines download raw bytes

1var map;
2var routeLayer = null;
3var routeMode;
4var userLocation = null;
5var userIcon;
6/*
7jQuery(window).resize(function($) {
8    jQuery(".page-contact #block-system-main .content").css({"left": (jQuery("body").outerWidth() - 940) / 2})
9 });*/
10
11
12 jQuery(document).ready(function($) {
13 	initialize();
14 });
15
16 function initialize() {
17
18
19
20    // Create a map object, and include the MapTypeId to add
21    // to the map type control.
22    if(jQuery('body.page-contact').length>0){
23    	var mapOptions = {
24    		zoom: 15,
25    		center: new google.maps.LatLng(42.864488, -8.568058),
26    		scrollwheel: false,
27    		disableDefaultUI: true
28    	};
29    } else {
30    	var mapOptions = {
31    		zoom: 15,
32    		center: new google.maps.LatLng(42.864488, -8.568058),
33    		scrollwheel: false,
34    	};
35    }
36
37    map = new google.maps.Map(document.getElementById('homeMap'),
38                              mapOptions);
39
40    google.maps.event.addDomListener(window, "resize", function() {
41    	var center = map.getCenter();
42    	google.maps.event.trigger(map, "resize");
43    	map.setCenter(center);
44    });
45
46    var image = {
47    	url: Drupal.settings.basePath + 'sites/all/modules/custom/tredess/images/mark.png',
48    	size: new google.maps.Size(39, 49),
49        //size: new google.maps.Size(18, 24),
50        origin: new google.maps.Point(0, 0),
51        anchor: new google.maps.Point(19.5, 49)
52     };
53     var myLatlngSantiago = new google.maps.LatLng(42.864488, -8.568058);
54     var markerSantiago = new google.maps.Marker({
55     	position: myLatlngSantiago,
56     	map: map,
57     	title: 'Santiago de Compostela',
58     	icon: image
59     });
60    /*var myLatlngVitoria = new google.maps.LatLng(42.863122, -2.693617);
61    var markerVitoria = new google.maps.Marker({
62        position: myLatlngVitoria,
63        map: map,
64        title: 'Vitoria',
65        icon: image
66    });
67    var myLatlngBarcelona = new google.maps.LatLng(41.384221,2.152258);
68    var markerBarcelona = new google.maps.Marker({
69        position: myLatlngBarcelona,
70        map: map,
71        title: 'Barcelona',
72        icon: image
73    });
74    var myLatlngMadrid = new google.maps.LatLng(40.482830, -3.671902);
75    var markerMadrid = new google.maps.Marker({
76        position: myLatlngMadrid,
77        map: map,
78        title: 'Madrid',
79        icon: image
80    });
81    var myLatlngChile = new google.maps.LatLng(-33.416105,-70.606441);
82    var marker = new google.maps.Marker({
83        position: myLatlngChile,
84        map: map,
85        title: 'Santiago de Chile',
86        icon: image
87     });*/
88
89     var bounds = new google.maps.LatLngBounds(myLatlngSantiago, myLatlngSantiago);
90    //bounds.extend(myLatLng);
91    //map.fitBounds(bounds);
92 }

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.