Skip to content
Snippets Groups Projects
Commit d560189d authored by Olivia206's avatar Olivia206
Browse files

added custom markes

parent 6533f7df
No related branches found
No related tags found
No related merge requests found
......@@ -17,5 +17,27 @@
.map
height: 600px
.organization
display: none
\ No newline at end of file
z-index: 1
> .organization
display: none
.leaflet-popup
&-tip-container
display: none
&-content-wrapper
border-radius: 0
padding: 0
.media
margin-bottom: 0
h3 a
@include meta
color: black
padding: half($spacing0)
&-content
margin: 0
z-index: 2
&-close-button
z-index: 4
@include in-page-without-sidebar
.map
margin-left: -$grid-gutter
margin-right: -$grid-gutter
\ No newline at end of file
......@@ -41,7 +41,7 @@
const themeMarker = L.icon({
iconUrl: '/assets/images/map-marker.svg',
iconSize: [26, 17],
iconSize: [17, 26],
});
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
......@@ -58,9 +58,10 @@
function newMarker (setLocation) {
var marker = new L.marker(setLocation, {
draggable: false
draggable: false,
icon: themeMarker
});
marker.bindPopup(partner.innerHTML).openPopup();
marker.bindPopup('<article class="organization">' + partner.innerHTML + '</article>').openPopup();
map.addLayer(marker);
}
newMarker(setLocation)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment