Commit 539b44d9 authored by Alfakhori's avatar Alfakhori
Browse files

Update public/index2.html, public/images/muhammad.png

parent 7cbf4e41
No related merge requests found
Pipeline #10083 passed with stage
in 5 seconds
Showing with 39 additions and 7 deletions
+39 -7
File moved
......@@ -31,13 +31,45 @@
maxZoom: 19,
}).addTo(map);
// Define custom icon
const customIcon = L.icon({
iconUrl: 'https://transfer.hft-stuttgart.de/gitlab/hire-promotionskolleg-team/study-areas-maps/-/raw/master/public/images/marker-type1.png', // Path to your custom marker image
iconSize: [32, 32], // Size of the icon
iconAnchor: [16, 32], // Point of the icon which will correspond to marker's location
popupAnchor: [0, -32] // Point from which the popup should open relative to the iconAnchor
});
// Define custom icons for different marker types
const icons = {
type1: L.icon({
iconUrl: 'images/muhammad.png',
iconSize: [32, 32],
iconAnchor: [16, 32],
popupAnchor: [0, -32]
}),
type2: L.icon({
iconUrl: 'images/marker-type2.png',
iconSize: [32, 32],
iconAnchor: [16, 32],
popupAnchor: [0, -32]
}),
type3: L.icon({
iconUrl: 'images/marker-type3.png',
iconSize: [32, 32],
iconAnchor: [16, 32],
popupAnchor: [0, -32]
}),
type4: L.icon({
iconUrl: 'images/marker-type4.png',
iconSize: [32, 32],
iconAnchor: [16, 32],
popupAnchor: [0, -32]
}),
type5: L.icon({
iconUrl: 'images/marker-type5.png',
iconSize: [32, 32],
iconAnchor: [16, 32],
popupAnchor: [0, -32]
}),
type6: L.icon({
iconUrl: 'images/marker-type6.png',
iconSize: [32, 32],
iconAnchor: [16, 32],
popupAnchor: [0, -32]
})
};
// Function to load pins from CSV and add them to the map
function loadPins() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment