CultureMap Houston – Martha Turner Neighborhood Guide 2025
${neighborhood.neighborhood}
`, disableAutoPan: true, // Prevent auto-panning closeBox: false, // Remove the shut button }); // Open information window and alter icon on marker hover marker.addListener(“mouseover”, () => { marker.setIcon(hoverIcon); // Change icon to hover icon infoWindow.open(map, marker); }); // Revert to default icon when not hovering marker.addListener(“mouseout”, () => { marker.setIcon(defaultIcon); // Change again to default icon infoWindow.shut(); }); // Navigate to URL on marker or information window click on google.maps.occasion.addListener(marker, “click”, () => { window.open(neighborhood.articleUrl, “_blank”); }); if (doc.querySelector(“.info-window a”)) { doc .querySelector(“.info-window a”) .addEventListener(“click”, () => { window.location.href = neighborhood.articleUrl; }); } }); } // Initialize the map window.onload = initMap;
Where to Eat
${neighborhood.eat}
Where to Play
${neighborhood.play}
Medium Home Price
${neighborhood.median}
Days on Market
${neighborhood.avg}
`; perform examine(a, b) { if (a.neighborhood < b.neighborhood) return -1; if (a.neighborhood > b.neighborhood) return 1; return 0; } perform populateNeighborhoods() { const nhList = doc.querySelector(“.nh-list”); const nhTemplate = doc.querySelector(“.nh”); neighborhoods.kind(examine).forEach((neighborhood) => { const html = template(neighborhood); nhList.insertAdjacentHTML(“beforeend”, html); }); } populateNeighborhoods(); // Realtor headshot tweaks (zoom OUT / reposition per realtor). // Scale examples: // – 0.95 = 5% zoom-out // – 0.90 = 10% zoom-out // – 0.80 = 20% zoom-out // // Position format: CSS `object-place` (eg “50% 15%” or “center top”) const realtorImageTweaks = { “Peggie Pentecost”: { scale: .8, place: “50% 15%” }, // “Some Realtor Name”: { scale: 0.9, place: “50% 15%” }, }; doc.querySelectorAll(“.nh”).forEach((card) => { const realtor = card.getAttribute(“data-realtor”) || “”; const tweak = realtorImageTweaks[realtor]; if (!tweak) return; if (typeof tweak.scale === “number”) { card.type.setProperty(“–realtor-image-scale”, String(tweak.scale)); } if (typeof tweak.place === “string”) { card.type.setProperty(“–realtor-image-position”, tweak.place); } }); console.log(‘mtsir’) // Make the complete card clickable (besides hyperlinks inside it)… // replace doc.querySelectorAll(“.nh”).forEach((card) => { const url = card.getAttribute(“data-article-url”); if (!url) return; card.addEventListener(“click”, (e) => { if (e.goal.closest(“a”)) return; window.open(url, “_blank”); }); card.addEventListener(“keydown”, (e) => { if (e.key !== “Enter” && e.key !== ” “) return; if (e.goal.closest(“a”)) return; e.preventDefault(); window.open(url, “_blank”); }); doc.querySelector(“.ad-tag”).take away();
