Update script.js
Browse files
script.js
CHANGED
@@ -7,7 +7,7 @@ L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
|
7 |
// Custom robot marker icon
|
8 |
const robotIcon = L.icon({
|
9 |
iconUrl: 'https://cdn.shopify.com/s/files/1/0767/2040/6877/files/LeRobot.png?v=1745423992', // Change to your preferred robot icon URL
|
10 |
-
iconSize: [
|
11 |
iconAnchor: [20, 40], // point of the icon which will correspond to marker's location
|
12 |
popupAnchor: [0, -35] // point from which the popup should open relative to the iconAnchor
|
13 |
});
|
|
|
7 |
// Custom robot marker icon
|
8 |
const robotIcon = L.icon({
|
9 |
iconUrl: 'https://cdn.shopify.com/s/files/1/0767/2040/6877/files/LeRobot.png?v=1745423992', // Change to your preferred robot icon URL
|
10 |
+
iconSize: [35, 35], // size of the icon
|
11 |
iconAnchor: [20, 40], // point of the icon which will correspond to marker's location
|
12 |
popupAnchor: [0, -35] // point from which the popup should open relative to the iconAnchor
|
13 |
});
|