`; } 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 ('sonora' != '') { 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: 412956790, lat: 19.270676, lon: -99.637275, bn: 'PELÍCULAS ANTI ASALTO AUTOMOTRIZ', address1: 'CALLE DEL ROSAL 18, LA MAGDALENA', address2: 'TOLUCA, 50010, MEX', url: '/informacion/cubiertas-protectoras-para-automoviles/la-magdalena/toluca/MEX/peliculas-anti-asalto-automotriz/412956790', phone: '(729)109-8334', isnational: 'false', index: 0, param1: null, category: 'cubiertas-protectoras-para-automoviles', adsa: 'adsa', state: 'sonora', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/peliculas-anti-asalto-automotriz/cubiertas-protectoras-para-automoviles/mex/toluca/412956790', city: 'toluca', bnPath: 'peliculas-anti-asalto-automotriz', dir: 'LA MAGDALENA, C.P.50010' }; resultados.push(resultado); }