forked from solidaridadUY/solidaridaduy.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
45 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,4 +35,12 @@ | |
|
||
gtag('config', 'UA-162185365-1'); | ||
</script> | ||
<!-- Mapa de Leaflet --> | ||
<script src="https://unpkg.com/[email protected]/dist/leaflet.js" | ||
integrity="sha512-gZwIG9x3wUXg2hdXF6+rVkLF/0Vi9U8D2Ntg4Ga5I5BZpVkVxlJWbSQtXPSiUTtC0TjtGOmxa1AJPuV0CPthew==" | ||
crossorigin=""></script> | ||
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" | ||
integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ==" | ||
crossorigin=""/> | ||
<!-- -------------- --> | ||
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<div id="leaflet-map"></div> | ||
|
||
<script> | ||
let mapZoom = screen.width < 800 ? 6 : 7; | ||
var map = L.map('leaflet-map').setView([-33.055, -55.629], mapZoom); | ||
L.tileLayer('http://{s}.tiles.mapbox.com/v3/{mapId}/{z}/{x}/{y}.png', { | ||
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a>, Imagery © <a href="http://mapbox.com">Mapbox</a>', | ||
mapId: 'ebrelsford.ho06j5h0', | ||
maxZoom: 18 | ||
}).addTo(map); | ||
|
||
{%- for org in site.organizaciones -%} | ||
{%- if org.ubicacion and org.ubicacion.latitud and org.ubicacion.longitud -%} | ||
{%- capture popupContent -%} | ||
{%- include org-popup-content.html content=org -%} | ||
{%- endcapture -%} | ||
{%- capture processedPopupContent -%} | ||
{{ popupContent | strip_newlines }} | ||
{%- endcapture -%} | ||
|
||
var marker = L.marker([{{ org.ubicacion.latitud }}, {{ org.ubicacion.longitud }}]) | ||
.bindPopup("{{ processedPopupContent }}") | ||
.addTo(map); | ||
{%- endif -%} | ||
{%- endfor -%} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
} | ||
|
||
.site-nav { | ||
z-index: 9999; | ||
text-transform: uppercase; | ||
font-weight: bold; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters