diff --git a/js/scripts.js b/js/scripts.js index c9ff3b4..5720109 100644 --- a/js/scripts.js +++ b/js/scripts.js @@ -268,15 +268,22 @@ //Openstreetmap with leaflet - var map = L.map('canvas-map-osm', { - center: [40.41161,-3.69406], + var mapOptions ={ zoomControl: false, scrollWheelZoom: false, zoom: 18, minZoom: 18, maxZoom: 18, dragging: false - }); + } + + if ($(window).width() < 768) { + mapOptions.center = [40.41172,-3.69406]; + }else{ + mapOptions.center = [40.41063,-3.69366]; + }; + + var map = L.map('canvas-map-osm', mapOptions); L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: '© OpenStreetMap contributors' @@ -301,303 +308,5 @@ $('#canvas-map').addClass('image-section').css('background-image','url(https://maps.googleapis.com/maps/api/staticmap?zoom=17¢er=' + mobileCenterMapCoordinates +'&size=' + $(window).width() + 'x700&scale=2&language=en&markers=icon:' + icon +'|'+ eventPlaceCoordinates +'&maptype=roadmap&style=visibility:on|lightness:40|gamma:1.1|weight:0.9&style=element:labels|visibility:off&style=feature:water|hue:0x0066ff&style=feature:road|visibility:on&style=feature:road|element:labels|saturation:-30)'); } - //Google maps - if (typeof googleMaps !== 'undefined') { - var trap, autocomplete, directionsDisplay, geocoder, polyline, origin; - var markers = []; - var directionsService = new google.maps.DirectionsService(); - var MY_MAPTYPE_ID = 'custom_style'; - - function initialize() { - directionsDisplay = new google.maps.DirectionsRenderer({ - suppressMarkers: true - }); - geocoder = new google.maps.Geocoder(); - - polyline = new google.maps.Polyline({ - strokeColor: '#03a9f4', - strokeOpacity: 1, - strokeWeight: 2 - }); - - var defaultOpts = [{ - stylers: [{ - lightness: 40 - }, { - visibility: 'on' - }, { - gamma: 0.9 - }, { - weight: 0.4 - }] - }, { - elementType: 'labels', - stylers: [{ - visibility: 'on' - }] - }, { - featureType: 'water', - stylers: [{ - color: '#5dc7ff' - }] - }, { - featureType: 'road', - stylers: [{ - visibility: 'off' - }] - }]; - - var zoomedOpts = [{ - stylers: [{ - lightness: 40 - }, { - visibility: 'on' - }, { - gamma: 1.1 - }, { - weight: 0.9 - }] - }, { - elementType: 'labels', - stylers: [{ - visibility: 'off' - }] - }, { - featureType: 'water', - stylers: [{ - color: '#5dc7ff' - }] - }, { - featureType: 'road', - stylers: [{ - visibility: 'on' - }] - }, { - featureType: 'road', - elementType: "labels", - stylers: [{ - saturation: -30 - }] - }]; - - var mapOptions = { - zoom: 17, - minZoom: 2, - scrollwheel: false, - panControl: false, - draggable: true, - zoomControl: false, - zoomControlOptions: { - position: google.maps.ControlPosition.RIGHT_TOP - }, - scaleControl: false, - mapTypeControl: false, - streetViewControl: false, - center: centerMap, - mapTypeControlOptions: { - mapTypeIds: [google.maps.MapTypeId.ROADMAP, MY_MAPTYPE_ID] - }, - mapTypeId: MY_MAPTYPE_ID - }; - if ($(window).width() < 768) { - mapOptions.center = mobileCenterMap; - } - if (googleMaps == 'logistics') { - mapOptions.zoom = 5; - mapOptions.zoomControl = true; - } - - map = new google.maps.Map(document.getElementById('canvas-map'), mapOptions); - var marker = new google.maps.Marker({ - position: eventPlace, - animation: google.maps.Animation.DROP, - icon: icon, - map: map - }); - markers.push(marker); - var defaultMapOptions = { - name: 'Default Style' - }; - var zoomedMapOptions = { - name: 'Zoomed Style' - }; - var defaultMapType = new google.maps.StyledMapType(defaultOpts, defaultMapOptions); - var zoomedMapType = new google.maps.StyledMapType(zoomedOpts, zoomedMapOptions); - map.mapTypes.set('default', defaultMapType); - map.mapTypes.set('zoomed', zoomedMapType); - if (googleMaps === 'logistics') { - map.setMapTypeId('default'); - var input = (document.getElementById('location-input')); - autocomplete = new google.maps.places.Autocomplete(input); - google.maps.event.addListener(autocomplete, 'place_changed', function() { - marker.setVisible(false); - var place = autocomplete.getPlace(); - if (place.geometry == 'undefined' || !place.geometry) { - return; - } - var address = ''; - if (place.address_components) { - address = [ - (place.address_components[0] && place.address_components[0].short_name || ''), (place.address_components[1] && place.address_components[1].short_name || ''), (place.address_components[2] && place.address_components[2].short_name || '') - ].join(' '); - } - geocoder.geocode({ - 'address': address - }, function(results, status) { - if (status == google.maps.GeocoderStatus.OK) { - origin = results[0].geometry.location; - calcRoute(origin, 'TRANSIT'); - } else { - alert('Geocode was not successful for the following reason: ' + status); - } - }); - }); - - } else { - map.setMapTypeId('zoomed'); - } - - function calcRoute(origin, selectedMode) { - var request = { - origin: origin, - destination: eventPlace, - travelMode: google.maps.TravelMode[selectedMode] - }; - directionsService.route(request, function(response, status) { - if (status == google.maps.DirectionsStatus.OK) { - map.setMapTypeId('zoomed'); - directionsDisplay.setMap(map); - directionsDisplay.setDirections(response); - var leg = response.routes[0].legs[0]; - makeMarker(leg.start_location); - makeMarker(leg.end_location); - $('#distance').text(leg.distance.text); - $('#estimateTime').text(leg.duration.text); - $('#mode-select').val(selectedMode); - $('#mode').removeClass('hidden'); - var attribute = $('#mode-icon use').attr('xlink:href'); - attribute = attribute.substring(0, attribute.indexOf('#') + 1) + 'icon-' + selectedMode.toLowerCase(); - $('#mode-icon use').attr('xlink:href', attribute); - } else if (status != google.maps.DirectionsStatus.OK && selectedMode != 'DRIVING') { - calcRoute(origin, 'DRIVING'); - } else { - var path = polyline.getPath(); - path.push(origin); - path.push(eventPlace); - makeMarker(origin); - makeMarker(eventPlace); - var bounds = new google.maps.LatLngBounds(); - bounds.extend(origin); - bounds.extend(eventPlace); - map.fitBounds(bounds); - polyline.setMap(map); - var distance = Math.round(google.maps.geometry.spherical.computeDistanceBetween(origin, eventPlace) / 1000); - $('#distance').text(distance + ' km'); - $('#estimateTime').text(''); - $('#find-flight').removeClass('hidden'); - $('#mode').addClass('hidden'); - } - }); - deleteMarkers(); - $('#find-way').addClass('location-active'); - setDirectionInput(origin); - $('#find-way h3').removeClass('fadeInUp').addClass('fadeOutDown'); - } - - function calcRouteFromMyLocation() { - if (navigator.geolocation) { - navigator.geolocation.getCurrentPosition(function(position) { - origin = new google.maps.LatLng(position.coords.latitude, position.coords.longitude); - calcRoute(origin, 'TRANSIT'); - }); - } - } - - function makeMarker(position) { - var directionMarker = new google.maps.Marker({ - position: position, - map: map, - icon: icon - }); - markers.push(directionMarker); - } - - function addMarker(location) { - var marker = new google.maps.Marker({ - position: location, - map: map - }); - markers.push(marker); - } - - function deleteMarkers() { - for (var i = 0; i < markers.length; i++) { - markers[i].setMap(null); - } - markers = []; - } - - function smoothZoom(level) { - var currentZoom = map.getZoom(), - timeStep = 50; - var numOfSteps = Math.abs(level - currentZoom); - var step = (level > currentZoom) ? 1 : -1; - for (var i = 0; i < numOfSteps; i++) { - setTimeout(function() { - currentZoom += step; - map.setZoom(currentZoom); - }, (i + 1) * timeStep); - } - } - - function setDirectionInput(origin) { - geocoder.geocode({ - 'latLng': origin - }, function(results, status) { - if (status == google.maps.GeocoderStatus.OK && results[1]) { - var arrAddress = results[1].address_components; - $.each(arrAddress, function(i, address_component) { - if (address_component.types[0] == "locality") { - $('#result-name').text(address_component.long_name); - return false; - } - }); - } - }); - } - - $('#mode-select').change(function() { - var selectedMode = $(this).val(); - calcRoute(origin, selectedMode); - }); - - $("#direction-locate").click(calcRouteFromMyLocation); - - $("#direction-cancel").click(function() { - $('#find-way').removeClass('location-active'); - $('#location-input').val(''); - $("#find-flight").addClass('hidden'); - deleteMarkers(); - directionsDisplay.setMap(null); - polyline.setMap(null); - map.setMapTypeId('default'); - map.panTo(eventPlace); - if ($(window).width() < 768) { - map.setCenter(mobileCenterMap); - } else { - map.setCenter(centerMap); - } - makeMarker(eventPlace); - smoothZoom(5); - $('#find-way h3').removeClass('fadeOutDown').addClass('fadeInUp'); - }); - - if (typeof autoDirectionEnabled !== 'undefined' && autoDirectionEnabled == true) { - calcRouteFromMyLocation(); - } - } - - google.maps.event.addDomListener(window, 'load', initialize); - } })(jQuery); diff --git a/js/scripts.min.js b/js/scripts.min.js index 8999101..2103021 100644 --- a/js/scripts.min.js +++ b/js/scripts.min.js @@ -1 +1 @@ -(function(g){g(document).ready(function(){g(window).load(function(){g("#st-container").removeClass("disable-scrolling");g("#loading-animation").fadeOut();g("#preloader").delay(350).fadeOut(800);d();equalheight(".same-height")});if(g(window).width()>1500){g(".effect-wrapper").addClass("col-lg-3")}if(g(window).width()<768){g(".animated").removeClass("animated").removeClass("hiding");g(".stat span").removeClass("timer");g(".timeslot-label").addClass("stick-label")}if(g(window).height()<512){g("#bottom-navlinks").removeClass("bottom-navlinks").addClass("bottom-navlinks-small")}if(g(window).scrollTop()>=100){g("#top-header").addClass("after-scroll");g("#logo-header .logo").removeClass("logo-light").addClass("logo-dark")}g(window).scroll(function(){var q=g(this).scrollTop();var u=g("#top-header");var t=g("#logo-header .logo");var r=g(".right-nav-button");var s=u.height()+g(".track-header").height();if(q>=100){u.addClass("after-scroll");t.removeClass("logo-light").addClass("logo-dark")}else{u.removeClass("after-scroll");t.removeClass("logo-dark").addClass("logo-light")}if(q>=g(".top-section").height()&&g(window).width()>767){r.removeClass("right-nav-button-hidden")}else{if(q767){r.addClass("right-nav-button-hidden")}}g(".slot").each(function(){var w=g(this).offset().top-q;var v=s+g(this).find(".slot-title").height();if(w<=v&&w>=0){g(".track-header.sticky").find(".slot-detail").html(g(this).data("slotDetail"))}})});g(window).resize(function(){if(g(window).width()>1500){g(".effect-wrapper").addClass("col-lg-3")}else{g(".effect-wrapper").removeClass("col-lg-3")}if(g(window).width()<768){g(".same-height").css("height","100%");g(".timeslot-label").addClass("stick-label")}else{g(".timeslot-label").removeClass("stick-label");if(n.hasClass("st-menu-open")){n.removeClass("st-menu-open");g("body").css("overflow","auto")}equalheight(".same-height")}if(g(window).height()<512){g(".st-menu").addClass("scrollable");g("#bottom-navlinks").removeClass("bottom-navlinks").addClass("bottom-navlinks-small")}else{g(".st-menu").removeClass("scrollable");g("#bottom-navlinks").removeClass("bottom-navlinks-small").addClass("bottom-navlinks")}});g(function(){g("a[href*=#]:not([href=#])").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var q=g(this.hash);q=q.length?q:g("[name="+this.hash.slice(1)+"]");if(q.length){g("html,body").animate({scrollTop:q.offset().top},1000);return false}}})});g(function(){g("a[href=#]").click(function(){event.preventDefault()})});g(function(){if(window.location.href.indexOf("schedule")>-1&&window.location.hash){var q=window.location.hash;g(q).click()}});g(function(){var t,r,s,w,v,q,u;u=g(".appear-animation");for(v=0,q=u.length;v1){g(this).closest(".speaker-item").find(".slider-next-item").removeClass("hidden")}});g(".slider-next-item").click(function(){var r=g(this).closest("div");var q=r.find(".slider-current-item").next();if(q.length){q.addClass("slider-current-item").removeClass("hidden");r.find(".slider-current-item").first().removeClass("slider-current-item").addClass("hidden")}else{r.find(".slider-item").first().addClass("slider-current-item").removeClass("hidden");r.find(".slider-current-item").last().removeClass("slider-current-item").addClass("hidden")}});g(".modal").on("hidden.bs.modal",function(){var q=g(this).find("iframe");q.attr("src",q.attr("src"))});g(".slot").click(function(){location.hash=g(this).attr("id")});if(typeof twitterFeedUrl!=="undefined"){g.getJSON(twitterFeedUrl,function(q){g.each(q,function(s,r){var t='";g("#tweets").append(t)});p()});function o(v){var s,r,q,u,t;r=/(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim;s=v.replace(r,'$1');q=/(^|[^\/])(www\.[\S]+(\b|$))/gim;s=s.replace(q,'$1$2');u=/#(\S*)/g;s=s.replace(u,'#$1');t=/\B@([\w-]+)/gm;s=s.replace(t,'@$1');return s}function p(){var q=g("#tweets").find(".tweet"),s=0;g(q.get(0)).removeClass("hidden");function t(){var u=(++s%q.length);g(q.get(u-1)).addClass("hidden");g(q.get(u)).removeClass("hidden")}var r=setInterval(t,5000)}}});var a=L.map("canvas-map-osm",{center:[40.41161,-3.69406],zoomControl:false,scrollWheelZoom:false,zoom:18,minZoom:18,maxZoom:18,dragging:false});L.tileLayer("http://{s}.tile.osm.org/{z}/{x}/{y}.png",{attribution:'© OpenStreetMap contributors'}).addTo(a);L.marker([40.41082,-3.69366]).addTo(a).bindPopup("Medialab-Prado
Plaza de las Letras. Calle Alameda, 15, Madrid");function d(){var n=document.createElement("script");n.type="text/javascript";n.async=true;n.src="https://apis.google.com/js/platform.js";var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(n,o)}if(typeof staticGoogleMaps!=="undefined"){g("#canvas-map").addClass("image-section").css("background-image","url(https://maps.googleapis.com/maps/api/staticmap?zoom=17¢er="+mobileCenterMapCoordinates+"&size="+g(window).width()+"x700&scale=2&language=en&markers=icon:"+icon+"|"+eventPlaceCoordinates+"&maptype=roadmap&style=visibility:on|lightness:40|gamma:1.1|weight:0.9&style=element:labels|visibility:off&style=feature:water|hue:0x0066ff&style=feature:road|visibility:on&style=feature:road|element:labels|saturation:-30)")}if(typeof googleMaps!=="undefined"){var m,b,l,c,j,k;var e=[];var i=new google.maps.DirectionsService();var h="custom_style";function f(){l=new google.maps.DirectionsRenderer({suppressMarkers:true});c=new google.maps.Geocoder();j=new google.maps.Polyline({strokeColor:"#03a9f4",strokeOpacity:1,strokeWeight:2});var z=[{stylers:[{lightness:40},{visibility:"on"},{gamma:0.9},{weight:0.4}]},{elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"water",stylers:[{color:"#5dc7ff"}]},{featureType:"road",stylers:[{visibility:"off"}]}];var A=[{stylers:[{lightness:40},{visibility:"on"},{gamma:1.1},{weight:0.9}]},{elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"water",stylers:[{color:"#5dc7ff"}]},{featureType:"road",stylers:[{visibility:"on"}]},{featureType:"road",elementType:"labels",stylers:[{saturation:-30}]}];var p={zoom:17,minZoom:2,scrollwheel:false,panControl:false,draggable:true,zoomControl:false,zoomControlOptions:{position:google.maps.ControlPosition.RIGHT_TOP},scaleControl:false,mapTypeControl:false,streetViewControl:false,center:centerMap,mapTypeControlOptions:{mapTypeIds:[google.maps.MapTypeId.ROADMAP,h]},mapTypeId:h};if(g(window).width()<768){p.center=mobileCenterMap}if(googleMaps=="logistics"){p.zoom=5;p.zoomControl=true}a=new google.maps.Map(document.getElementById("canvas-map"),p);var q=new google.maps.Marker({position:eventPlace,animation:google.maps.Animation.DROP,icon:icon,map:a});e.push(q);var r={name:"Default Style"};var u={name:"Zoomed Style"};var t=new google.maps.StyledMapType(z,r);var s=new google.maps.StyledMapType(A,u);a.mapTypes.set("default",t);a.mapTypes.set("zoomed",s);if(googleMaps==="logistics"){a.setMapTypeId("default");var y=(document.getElementById("location-input"));b=new google.maps.places.Autocomplete(y);google.maps.event.addListener(b,"place_changed",function(){q.setVisible(false);var E=b.getPlace();if(E.geometry=="undefined"||!E.geometry){return}var D="";if(E.address_components){D=[(E.address_components[0]&&E.address_components[0].short_name||""),(E.address_components[1]&&E.address_components[1].short_name||""),(E.address_components[2]&&E.address_components[2].short_name||"")].join(" ")}c.geocode({address:D},function(G,F){if(F==google.maps.GeocoderStatus.OK){k=G[0].geometry.location;C(k,"TRANSIT")}else{alert("Geocode was not successful for the following reason: "+F)}})})}else{a.setMapTypeId("zoomed")}function C(D,F){var E={origin:D,destination:eventPlace,travelMode:google.maps.TravelMode[F]};i.route(E,function(H,G){if(G==google.maps.DirectionsStatus.OK){a.setMapTypeId("zoomed");l.setMap(a);l.setDirections(H);var K=H.routes[0].legs[0];n(K.start_location);n(K.end_location);g("#distance").text(K.distance.text);g("#estimateTime").text(K.duration.text);g("#mode-select").val(F);g("#mode").removeClass("hidden");var J=g("#mode-icon use").attr("xlink:href");J=J.substring(0,J.indexOf("#")+1)+"icon-"+F.toLowerCase();g("#mode-icon use").attr("xlink:href",J)}else{if(G!=google.maps.DirectionsStatus.OK&&F!="DRIVING"){C(D,"DRIVING")}else{var M=j.getPath();M.push(D);M.push(eventPlace);n(D);n(eventPlace);var I=new google.maps.LatLngBounds();I.extend(D);I.extend(eventPlace);a.fitBounds(I);j.setMap(a);var N=Math.round(google.maps.geometry.spherical.computeDistanceBetween(D,eventPlace)/1000);g("#distance").text(N+" km");g("#estimateTime").text("");g("#find-flight").removeClass("hidden");g("#mode").addClass("hidden")}}});B();g("#find-way").addClass("location-active");w(D);g("#find-way h3").removeClass("fadeInUp").addClass("fadeOutDown")}function o(){if(navigator.geolocation){navigator.geolocation.getCurrentPosition(function(D){k=new google.maps.LatLng(D.coords.latitude,D.coords.longitude);C(k,"TRANSIT")})}}function n(D){var E=new google.maps.Marker({position:D,map:a,icon:icon});e.push(E)}function x(E){var D=new google.maps.Marker({position:E,map:a});e.push(D)}function B(){for(var D=0;DF)?1:-1;for(var E=0;E1500){c(".effect-wrapper").addClass("col-lg-3")}if(c(window).width()<768){c(".animated").removeClass("animated").removeClass("hiding");c(".stat span").removeClass("timer");c(".timeslot-label").addClass("stick-label")}if(c(window).height()<512){c("#bottom-navlinks").removeClass("bottom-navlinks").addClass("bottom-navlinks-small")}if(c(window).scrollTop()>=100){c("#top-header").addClass("after-scroll");c("#logo-header .logo").removeClass("logo-light").addClass("logo-dark")}c(window).scroll(function(){var h=c(this).scrollTop();var l=c("#top-header");var k=c("#logo-header .logo");var i=c(".right-nav-button");var j=l.height()+c(".track-header").height();if(h>=100){l.addClass("after-scroll");k.removeClass("logo-light").addClass("logo-dark")}else{l.removeClass("after-scroll");k.removeClass("logo-dark").addClass("logo-light")}if(h>=c(".top-section").height()&&c(window).width()>767){i.removeClass("right-nav-button-hidden")}else{if(h767){i.addClass("right-nav-button-hidden")}}c(".slot").each(function(){var n=c(this).offset().top-h;var m=j+c(this).find(".slot-title").height();if(n<=m&&n>=0){c(".track-header.sticky").find(".slot-detail").html(c(this).data("slotDetail"))}})});c(window).resize(function(){if(c(window).width()>1500){c(".effect-wrapper").addClass("col-lg-3")}else{c(".effect-wrapper").removeClass("col-lg-3")}if(c(window).width()<768){c(".same-height").css("height","100%");c(".timeslot-label").addClass("stick-label")}else{c(".timeslot-label").removeClass("stick-label");if(e.hasClass("st-menu-open")){e.removeClass("st-menu-open");c("body").css("overflow","auto")}equalheight(".same-height")}if(c(window).height()<512){c(".st-menu").addClass("scrollable");c("#bottom-navlinks").removeClass("bottom-navlinks").addClass("bottom-navlinks-small")}else{c(".st-menu").removeClass("scrollable");c("#bottom-navlinks").removeClass("bottom-navlinks-small").addClass("bottom-navlinks")}});c(function(){c("a[href*=#]:not([href=#])").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var h=c(this.hash);h=h.length?h:c("[name="+this.hash.slice(1)+"]");if(h.length){c("html,body").animate({scrollTop:h.offset().top},1000);return false}}})});c(function(){c("a[href=#]").click(function(){event.preventDefault()})});c(function(){if(window.location.href.indexOf("schedule")>-1&&window.location.hash){var h=window.location.hash;c(h).click()}});c(function(){var l,j,k,o,n,h,m;m=c(".appear-animation");for(n=0,h=m.length;n1){c(this).closest(".speaker-item").find(".slider-next-item").removeClass("hidden")}});c(".slider-next-item").click(function(){var i=c(this).closest("div");var h=i.find(".slider-current-item").next();if(h.length){h.addClass("slider-current-item").removeClass("hidden");i.find(".slider-current-item").first().removeClass("slider-current-item").addClass("hidden")}else{i.find(".slider-item").first().addClass("slider-current-item").removeClass("hidden");i.find(".slider-current-item").last().removeClass("slider-current-item").addClass("hidden")}});c(".modal").on("hidden.bs.modal",function(){var h=c(this).find("iframe");h.attr("src",h.attr("src"))});c(".slot").click(function(){location.hash=c(this).attr("id")});if(typeof twitterFeedUrl!=="undefined"){c.getJSON(twitterFeedUrl,function(h){c.each(h,function(k,j){var l='";c("#tweets").append(l)});g()});function f(m){var j,i,h,l,k;i=/(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim;j=m.replace(i,'$1');h=/(^|[^\/])(www\.[\S]+(\b|$))/gim;j=j.replace(h,'$1$2');l=/#(\S*)/g;j=j.replace(l,'#$1');k=/\B@([\w-]+)/gm;j=j.replace(k,'@$1');return j}function g(){var h=c("#tweets").find(".tweet"),k=0;c(h.get(0)).removeClass("hidden");function l(){var i=(++k%h.length);c(h.get(i-1)).addClass("hidden");c(h.get(i)).removeClass("hidden")}var j=setInterval(l,5000)}}});var b={zoomControl:false,scrollWheelZoom:false,zoom:18,minZoom:18,maxZoom:18,dragging:false};if(c(window).width()<768){b.center=[40.41172,-3.69406]}else{b.center=[40.41063,-3.69366]}var d=L.map("canvas-map-osm",b);L.tileLayer("http://{s}.tile.osm.org/{z}/{x}/{y}.png",{attribution:'© OpenStreetMap contributors'}).addTo(d);L.marker([40.41082,-3.69366]).addTo(d).bindPopup("Medialab-Prado
Plaza de las Letras. Calle Alameda, 15, Madrid");function a(){var e=document.createElement("script");e.type="text/javascript";e.async=true;e.src="https://apis.google.com/js/platform.js";var f=document.getElementsByTagName("script")[0];f.parentNode.insertBefore(e,f)}if(typeof staticGoogleMaps!=="undefined"){c("#canvas-map").addClass("image-section").css("background-image","url(https://maps.googleapis.com/maps/api/staticmap?zoom=17¢er="+mobileCenterMapCoordinates+"&size="+c(window).width()+"x700&scale=2&language=en&markers=icon:"+icon+"|"+eventPlaceCoordinates+"&maptype=roadmap&style=visibility:on|lightness:40|gamma:1.1|weight:0.9&style=element:labels|visibility:off&style=feature:water|hue:0x0066ff&style=feature:road|visibility:on&style=feature:road|element:labels|saturation:-30)")}})(jQuery); \ No newline at end of file