`; } 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 ('michoacan' != '') { 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: 412800219, lat: 18.868082, lon: -98.930804, bn: 'HIELO POLAR', address1: 'CENTRAL DE ABASTOS LOCAL 12, TETELCINGO', address2: 'CUAUTLA, 62757, MOR', url: '/informacion/poleas-fabricas/tetelcingo/cuautla/MOR/hielo-polar/412800219', phone: '(735)353-3480', isnational: 'false', index: 0, param1: null, category: 'hielo-fabricas', adsa: 'adsa', state: 'michoacan', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/hielo-polar/hielo-fabricas/mor/cuautla/412800219', city: 'cuautla', bnPath: 'hielo-polar', dir: 'TETELCINGO, C.P.62757' }; resultados.push(resultado); var resultado = { id: 409525655, lat: 18.921245, lon: -99.237023, bn: 'MARCO POLO', address1: 'HIDALGO 30 ALTOS 9, CENTRO', address2: 'CUERNAVACA, 62000, MOR', url: '/informacion/poleas-fabricas/centro/cuernavaca/MOR/marco-polo/409525655', phone: '(777)318-4032', isnational: 'false', index: 1, param1: null, category: 'italiana', adsa: 'adsa', state: 'michoacan', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/marco-polo/italiana/mor/cuernavaca/409525655', city: 'cuernavaca', bnPath: 'marco-polo', dir: 'CENTRO, C.P.62000' }; resultados.push(resultado); var resultado = { id: 3578419, lat: 18.9211, lon: -99.23762, bn: 'MARCO POLO', address1: 'HIDALGO 30, CUERNAVACA CENTRO', address2: 'CUERNAVACA, 62000, MOR', url: '/informacion/poleas-fabricas/cuernavaca-centro/cuernavaca/MOR/marco-polo/3578419', phone: '(777)312-3484', isnational: 'false', index: 2, param1: null, category: 'internacional', adsa: 'adsa', state: 'michoacan', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/marco-polo/internacional/mor/cuernavaca/3578419', city: 'cuernavaca', bnPath: 'marco-polo', dir: 'CUERNAVACA CENTRO, C.P.62000' }; resultados.push(resultado); }