`; } if (tipo == 'places') { contentString = ``; } var infoWindow = new google.maps.InfoWindow({ content: contentString }); google.maps.event.addListener(marker, 'click', function () { map.setZoom(14); map.setCenter(marker.getPosition()); if (activeWindow != null) activeWindow.close(); infoWindows[this.infoWindowIndex].open(map, this); activeWindow = infoWindows[this.infoWindowIndex]; }); google.maps.event.addListener(infoWindow, 'closeclick', function () { map.setZoom(zoom); map.setCenter(markers[0].getPosition()); }); infoWindows.push(infoWindow); markers.push(marker); map.setCenter(markers[0].getPosition()); mapCounter = index; } function getShared(advListId) { $("#shared_" + advListId).click(); } const resultados = []; function initMap() { if ('yucatan' != '') { zoom = 12; } map = new google.maps.Map(document.getElementById('show-map'), { scrollwheel: false, zoom: zoom }); var latLonIsNull = 'isNull'; var latValue = ''; var lonValue = ''; if (latLonIsNull == "notNull") { if (latValue != null && lonValue != null) { var markerMU = new google.maps.Marker({ position: { lat: parseFloat(latValue), lng: parseFloat(lonValue) }, map: map, title: "Mi actual ubicación", icon: "https://maps.google.com/mapfiles/ms/icons/red-dot.png" }); } } var resultado = { id: 413057648, lat: 20.66139, lon: -103.312124, bn: 'VELCRUZ', address1: 'CALLE. DR. SALVADOR GARCIA DIEGO 179, SAN ANTONIO', address2: 'GUADALAJARA, 44800, JAL', url: '/informacion/mesas-plegables-y-en-general/san-antonio/guadalajara/JAL/velcruz/413057648', phone: '(33)3655-5592', isnational: 'false', index: 0, param1: null, category: 'mesas-plegables-y-en-general', adsa: 'adsa', state: 'yucatan', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/velcruz/mesas-plegables-y-en-general/jal/guadalajara/413057648', city: 'guadalajara', bnPath: 'velcruz', dir: 'SAN ANTONIO, C.P.44800' }; resultados.push(resultado); var resultado = { id: 413016323, lat: 19.345628, lon: -99.056439, bn: 'VEGA8312292I4', address1: 'FRANCISCO MARTIN DEL CAMPO 51, COLONIAL IZTAPALAPA', address2: 'IZTAPALAPA, 09270, DF', url: '/informacion/mesas-plegables-y-en-general/colonial-iztapalapa/iztapalapa/DF/vega8312292i4/413016323', phone: '(55)3867-1992', isnational: 'false', index: 1, param1: null, category: 'mesas-plegables-y-en-general', adsa: 'adsa', state: 'yucatan', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/vega8312292i4/mesas-plegables-y-en-general/df/iztapalapa/413016323', city: 'iztapalapa', bnPath: 'vega8312292i4', dir: 'COLONIAL IZTAPALAPA, C.P.09270' }; resultados.push(resultado); var resultado = { id: 413049604, lat: 19.54749, lon: -99.0744, bn: 'PIZARRONES Y MOBILIARIO ARCOIRIS', address1: 'PROLONGACIÓN DE LECHEPA MZ. 1 LT. 24, CARLOS HANK GONZALEZ', address2: 'ECATEPEC, 55520, MEX', url: '/informacion/mesas-plegables-y-en-general/carlos-hank-gonzalez/ecatepec/MEX/pizarrones-y-mobiliario-arcoiris/413049604', phone: '(55)5788-4375', isnational: 'false', index: 2, param1: null, category: 'muebles-escolares', adsa: 'adsa', state: 'yucatan', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/pizarrones-y-mobiliario-arcoiris/muebles-escolares/mex/ecatepec/413049604', city: 'ecatepec', bnPath: 'pizarrones-y-mobiliario-arcoiris', dir: 'CARLOS HANK GONZALEZ, C.P.55520' }; resultados.push(resultado); }