$('body').scrollspy({ target: '#subnavbar' }); //MAP var map,mapfull; function initialize() { var Wikimedia; var Wikimedia2; var icon = "/library/images/icons/bc_marca2.png"; var myLatlng = [42.847939863077,-8.9262990234375]; var mapOptions = { zoom: 12, center: myLatlng, }; var marker = L.marker( myLatlng, { icon: L.icon({iconUrl:icon}), title: "Cabañitas del Bosque" }); var markerBig = L.marker( myLatlng, { icon: L.icon({iconUrl:icon}), title: "Cabañitas del Bosque" }); var Wikimedia = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: '© OpenStreetMap', minZoom: 2,//alejamiento maximo, tierra completa }); var Wikimedia2 = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: '© OpenStreetMap', minZoom: 2,//alejamiento maximo, tierra completa }); //mapa pequeño var map = L.map('map-establishment',mapOptions); //crear mapa con las opciones configuradas var mapfull = L.map('map_full_screen',mapOptions); //crear mapa con las opciones configuradas Wikimedia.addTo(map);// añadir capa de visualizacion del mapa asi como sus opciones propias Wikimedia2.addTo(mapfull);// añadir capa de visualizacion del mapa asi como sus opciones propias markerBig.addTo(mapfull); marker.addTo(map); markerBig.bindPopup("Cabañitas del Bosque").openPopup(); marker.bindPopup("Cabañitas del Bosque").openPopup(); jQuery('#row_map_full_screen').hide();//ocultar mapa grande } window.onload = initialize();//inicializar todo lo relacionado con el mapa al cargar la pagina //Fullscreen map $(".click_map").click(function() { //loadGoogleMaps(jQuery('#search-map'),1,$(this).attr('marker')); $('#establishment_content').fadeOut(800); $('#side-bar').fadeOut(800); $('#row_map_full_screen').fadeIn(800); }); //end map fulllscreen $('.close-big-map2').click(function() { //$('#map_big').css("left","0",2000 ); //$('.close-big-map').fadeOut( "slow"); $('.leaflet-popup-close-button').trigger("click"); $('#establishment_content').fadeIn(800); $('#side-bar').fadeIn(800); $('#row_map_full_screen').fadeOut(800); //initialize(); //google.maps.event.addDomListener(window, 'load', initialize); //google.maps.event.trigger(map.getMap(), 'resize'); }); var geonameid = '30000790'; var arrival_date =''; var departure_date =''; var people =''; var language ='fr'; var country_foldername =''; var county_foldername =''; var zone_foldername =''; var region_foldername =''; var city_foldername =''; var fullsearch =''; var establishments_features =''; var products_features =''; var establishments_features =''; //var product_type =''; var max_prize =''; var filter_min_rate =''; var latm ='42.847939863077'; var lonm ='-8.9262990234375'; // $.post('/framework/includes/description-nearby.php', {max_results: 4, page: 1, language: language, order: 'proximity', country_foldername: country_foldername, county_foldername: county_foldername, zone_foldername: zone_foldername, region_foldername: region_foldername, city_foldername: city_foldername, fullsearch: fullsearch, establishments_features: establishments_features, products_features: products_features, max_prize: max_prize, filter_min_rate: filter_min_rate, arrival_date: arrival_date, departure_date: departure_date, people: people, latitude: latm, longitude: lonm, geonameid: geonameid}, function(htmlnearby) { // $('.nearby').html(htmlnearby); // //$('.nearby').html(); // }); });// end $(document).ready(function() -->