This commit is contained in:
Roman Pyrih
2025-04-10 13:23:22 +02:00
parent d931260e2c
commit f31297f1b6

View File

@@ -493,7 +493,7 @@ $partnerzy_handlowi_export = [
{
id: 1,
name: "Salon Rzeszów",
position: { lat: 50.0411, lng: 21.9991 },
position: { lat: 50.10243121484434, lng: 21.97603885371925 },
icon: "https://maps.google.com/mapfiles/ms/icons/red-dot.png",
description: `
<p>
@@ -506,23 +506,43 @@ $partnerzy_handlowi_export = [
},
{
id: 2,
name: "Salon Kraków",
position: { lat: 50.0647, lng: 19.9450 },
icon: "https://maps.google.com/mapfiles/ms/icons/blue-dot.png"
}
name: "Salon Rzeszów",
position: { lat: 50.02638046029387, lng: 21.995528011388217 },
icon: "https://maps.google.com/mapfiles/ms/icons/blue-dot.png",
description: `
<p>
ul. Hetmanska 39<br/>
35-045 Rzeszów
</p>
<a class="contact-btn" href="/rzeszow-salon">więcej o salonie</a>
`
},
{
id: 3,
name: "Salon Rzeszów",
position: { lat: 49.69534141127558, lng: 21.75183226667421 },
icon: "https://maps.google.com/mapfiles/ms/icons/green-dot.png",
description: `
<p>
ul. Kolejowa 17<br/>
38-400 Krosno
</p>
<a class="contact-btn" href="/salon-krosno">więcej o salonie</a>
`
},
];
const instytucjonalniLocations = [
{
id: 1,
name: "Salon Warszawa",
position: { lat: 52.2297, lng: 21.0122 }
},
{
id: 2,
name: "Salon Wrocław",
position: { lat: 51.1079, lng: 17.0385 }
}
// {
// id: 1,
// name: "Salon Warszawa",
// position: { lat: 52.887859087194855, lng: 18.789340146998654 }
// },
// {
// id: 2,
// name: "Salon Wrocław",
// position: { lat: 51.1079, lng: 17.0385 }
// }
];
const mapOptions = {
@@ -634,6 +654,7 @@ $partnerzy_handlowi_export = [
}
function addMarkersToMap(map, locations, infoContainerSelector) {
if (locations.length) {
const bounds = new google.maps.LatLngBounds();
locations.forEach(location => {
@@ -662,6 +683,8 @@ $partnerzy_handlowi_export = [
});
map.fitBounds(bounds);
}
}
$(document).ready(function() {