Update
This commit is contained in:
parent
2ef247304d
commit
07a266ff2a
|
@ -35,7 +35,7 @@ export function addMarkersCommunities(map,content) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var markerIcon = new L.Icon({
|
var markerIcon = new L.Icon({
|
||||||
iconUrl: 'https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-red.png',
|
iconUrl: 'https://www.libsoc.org/img/common/markers/marker-red.png',
|
||||||
shadowUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images/marker-shadow.png',
|
shadowUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images/marker-shadow.png',
|
||||||
iconSize: [25, 41],
|
iconSize: [25, 41],
|
||||||
iconAnchor: [12, 41],
|
iconAnchor: [12, 41],
|
||||||
|
|
|
@ -49,7 +49,7 @@ export function addMarkersGroups(map,content) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var markerIcon = new L.Icon({
|
var markerIcon = new L.Icon({
|
||||||
iconUrl: 'https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-green.png',
|
iconUrl: 'https://www.libsoc.org/img/common/markers/marker-green.png',
|
||||||
shadowUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images/marker-shadow.png',
|
shadowUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images/marker-shadow.png',
|
||||||
iconSize: [25, 41],
|
iconSize: [25, 41],
|
||||||
iconAnchor: [12, 41],
|
iconAnchor: [12, 41],
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
<h2>{$content.subheading2}</h2>
|
<h2>{$content.subheading2}</h2>
|
||||||
<div id="call-to-action-list">
|
<div id="call-to-action-list">
|
||||||
<p>{$content.findOur}</p>
|
<p>{$content.findOur}</p>
|
||||||
<ol>
|
<ol id="entities-list">
|
||||||
<li><a href={"/" + locale + "/groups"}>{$content.group}</a>,</li>
|
<li><a href={"/" + locale + "/groups"}>{$content.group}</a>,</li>
|
||||||
<li><a href={"/" + locale + "/communities"}>{$content.community}</a> {$content.or}</li>
|
<li><a href={"/" + locale + "/communities"}>{$content.community}</a> {$content.or}</li>
|
||||||
<li><a href={"/" + locale + "/cooperatives"}>{$content.cooperative}</a></li>
|
<li><a href={"/" + locale + "/cooperatives"}>{$content.cooperative}</a></li>
|
||||||
|
@ -79,6 +79,36 @@
|
||||||
<style>
|
<style>
|
||||||
@import '/css/common.css';
|
@import '/css/common.css';
|
||||||
|
|
||||||
|
#entities-list li {
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#entities-list li:before {
|
||||||
|
content: '';
|
||||||
|
display: inline-block;
|
||||||
|
height: 1.1rem;
|
||||||
|
width: 1rem;
|
||||||
|
background-size: contain;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
margin-left: -1.5rem;
|
||||||
|
margin-right: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#entities-list li:nth-of-type(1):before {
|
||||||
|
background-image: url(https://www.libsoc.org/img/common/markers/marker-green.png);
|
||||||
|
}
|
||||||
|
#entities-list li:nth-of-type(2):before {
|
||||||
|
background-image: url(https://www.libsoc.org/img/common/markers/marker-red.png);
|
||||||
|
}
|
||||||
|
#entities-list li:nth-of-type(3):before {
|
||||||
|
background-image: url(https://www.libsoc.org/img/common/markers/marker-blue.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
#entities-list li::marker {
|
||||||
|
display: inline-block;
|
||||||
|
height: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,15 +34,15 @@ export function addMarkersCommunities(map,content) {
|
||||||
text += fieldText + g[field] + "<br>"
|
text += fieldText + g[field] + "<br>"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var greenIcon = new L.Icon({
|
var markerIcon = new L.Icon({
|
||||||
iconUrl: 'https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-red.png',
|
iconUrl: 'https://www.libsoc.org/img/common/markers/marker-red.png',
|
||||||
shadowUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images/marker-shadow.png',
|
shadowUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images/marker-shadow.png',
|
||||||
iconSize: [25, 41],
|
iconSize: [25, 41],
|
||||||
iconAnchor: [12, 41],
|
iconAnchor: [12, 41],
|
||||||
popupAnchor: [1, -34],
|
popupAnchor: [1, -34],
|
||||||
shadowSize: [41, 41]
|
shadowSize: [41, 41]
|
||||||
});
|
});
|
||||||
let marker = L.marker(coordinates, {icon: greenIcon})
|
let marker = L.marker(coordinates, {icon: markerIcon})
|
||||||
marker.addTo(map).bindPopup(text)
|
marker.addTo(map).bindPopup(text)
|
||||||
}
|
}
|
||||||
}
|
}
|
File diff suppressed because one or more lines are too long
|
@ -48,15 +48,15 @@ export function addMarkersGroups(map,content) {
|
||||||
text += fieldText + g[field] + "<br>"
|
text += fieldText + g[field] + "<br>"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var greenIcon = new L.Icon({
|
var markerIcon = new L.Icon({
|
||||||
iconUrl: 'https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-green.png',
|
iconUrl: 'https://www.libsoc.org/img/common/markers/marker-green.png',
|
||||||
shadowUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images/marker-shadow.png',
|
shadowUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images/marker-shadow.png',
|
||||||
iconSize: [25, 41],
|
iconSize: [25, 41],
|
||||||
iconAnchor: [12, 41],
|
iconAnchor: [12, 41],
|
||||||
popupAnchor: [1, -34],
|
popupAnchor: [1, -34],
|
||||||
shadowSize: [41, 41]
|
shadowSize: [41, 41]
|
||||||
});
|
});
|
||||||
let marker = L.marker(coordinates, {icon: greenIcon})
|
let marker = L.marker(coordinates, {icon: markerIcon})
|
||||||
marker.addTo(map).bindPopup(text)
|
marker.addTo(map).bindPopup(text)
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue