new tag menu

master
rita 5 years ago
parent 26db40c524
commit 583d123730

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 24 KiB

@ -14,25 +14,32 @@
<body> <body>
<div class="tags_menu">
<div class="tags_header">
<h1>Tags</h1>
<button onclick="myDropmenu()" class="dropbtn"> </button>
</div>
<div id="myDropdown" class="dropdown-content">
<h2>Field</h2> <h2>Field</h2>
<h2> Format </h2> <div id="leaflet_layers"><!--Here the layer control menu will be added--></div>
<h2> Language </h2> </div>
</div>
<div id='map'></div> <div id='map'></div>
<script> <script>
/* When the user clicks the menu button, toggle between hiding and showing the dropdown content */
function myDropmenu() {
document.getElementById("myDropdown").classList.toggle("show");
}
//map layers //map layers
//var artobj = L.layerGroup(); //var artobj = L.layerGroup();
//function to remove duplicates in array
function removeDuplicates(data) {
return [...new Set(data)]
};
// Leaflet // Leaflet
var map = L.map('map', { var map = L.map('map', {
zoomControl: false, //removes zoom controls zoomControl: false, //removes zoom controls
@ -43,7 +50,6 @@ var map = L.map('map', {
}); });
var yx = L.latLng; var yx = L.latLng;
var xy = function(x, y) { var xy = function(x, y) {
if (L.Util.isArray(x)) { // When doing xy([x, y]); if (L.Util.isArray(x)) { // When doing xy([x, y]);
return yx(x[1], x[0]); return yx(x[1], x[0]);
@ -52,41 +58,38 @@ var xy = function(x, y) {
}; };
var bounds = [xy(0, 0), xy(0, 0)]; //did this to remove border around map, showing on firefox var bounds = [xy(0, 0), xy(0, 0)]; //did this to remove border around map, showing on firefox
var image = L.imageOverlay('', bounds).addTo(map); //imageOverlay is the map image var image = L.imageOverlay('', bounds).addTo(map); //imageOverlay is the map image
map.fitBounds(bounds); map.fitBounds(bounds);
map.setView(xy(1050, 750), -1); //1st and 2nd values: where the maps centers. 3rd value: zoom
map.setView(xy(1250, 750), -1); //1st and 2nd values: where the maps centers. 3rd value: zoom
// Wiki Api // Wiki Api
var apiEndpoint = "https://hub.xpub.nl/networksofcare/mediawiki/api.php"; var apiEndpoint = "https://hub.xpub.nl/networksofcare/mediawiki/api.php";
// my query: All pages with category "diagram". Show "category", show "connection", show "field".
var params ="action=ask&format=json&query=[[Category%3ADiagram]] |%3FCategory |%3FConnection |%3FField"; var params ="action=ask&format=json&query=[[Category%3ADiagram]] |%3FCategory |%3FConnection |%3FField";
// my query: All pages with category "diagram". Show "category", show "connection", show "field".
// "diagram::include" is my way of annotating on the wiki which pages should be visible on the diagram. e.g. I may not want help pages there, main page, etc. //Main categories with static location:
// "connection::" is my annotation on the wiki for pages that are connected to others. e.g. "Lídia" page is connected to "Varia Code of Conducts". "ginger coons" page is connected to "LGM Code of Conducts". var myIcon2 = L.divIcon({ className: 'leaflet-div-icon4', iconSize: new L.Point(150, 30), html: 'Networking' });
var myIcon3 = L.divIcon({ className: 'leaflet-div-icon6', iconSize: new L.Point(60, 40), html: 'Linking' });
//Main categories static location: var myIcon1 = L.divIcon({ className: 'leaflet-div-icon5', iconSize: new L.Point(60, 40), html: 'Archiving' });
var myIcon2 = L.divIcon({ iconSize: new L.Point(60, 40), html: 'Networking' }); L.marker(xy(1000, 400), {icon: myIcon1}).addTo(map); //Archiving
var myIcon3 = L.divIcon({ iconSize: new L.Point(60, 40), html: 'Linking' });
var myIcon1 = L.divIcon({ iconSize: new L.Point(60, 40), html: 'Archiving' });
L.marker(xy(1000, 400), {icon: myIcon1}).addTo(map);
L.marker(xy(1600, 1200), {icon: myIcon2}).addTo(map); //Networking L.marker(xy(1600, 1200), {icon: myIcon2}).addTo(map); //Networking
L.marker(xy(100, 1400), {icon: myIcon3}).addTo(map); //Linking L.marker(xy(100, 1400), {icon: myIcon3}).addTo(map); //Linking
// exploring animations // exploring animations
//L.marker(xy(1000, 400), {icon: L.icon({iconUrl: 'https://unpkg.com/leaflet@1.0.3/dist/images/marker-icon.png', className: 'blinking'})}).addTo(map); //L.marker(xy(1000, 400), {icon: L.icon({iconUrl: 'https://unpkg.com/leaflet@1.0.3/dist/images/marker-icon.png', className: 'blinking'})}).addTo(map);
var dict = {} //this objects works as a dictionary to store page names and their coordinates var dict = {} //this object works as a dictionary to store page names and their coordinates
var connectionarray = []; //this array will store page names and their connections var connectionarray = []; //this array will store page names and their connections
var overlays = {}; //dictionary for map layers var overlays = {}; //object for map layers
// making random coordinates for the points
// makes random coordinates for the points //in archiving
var lanArray = []; var lanArray = [];
for (var i = 1; i <= 50; i++) { //in 3+4th quadrant for (var i = 1; i <= 50; i++) { //in 3+4th quadrant
lanArray.push(i * 50); //* 50 means I only have coordinates ending with 0 or 5, making them more far apart lanArray.push(i * 50); //* 50 means I only have coordinates ending with 0 or 5, making them more far apart
@ -97,9 +100,10 @@ for (var i = 1; i <= 15; i++) {
lonArray.push(i * 50); lonArray.push(i * 50);
} }
var lan1Array = []; //in networking
var lan2Array = [];
for (var i = 25; i <= 50; i++) {//2nd quadrant for (var i = 25; i <= 50; i++) {//2nd quadrant
lan1Array.push(i * 50); lan2Array.push(i * 50);
} }
var lon2Array = []; var lon2Array = [];
@ -107,28 +111,38 @@ for (var i = 15; i <= 30; i++) {
lon2Array.push(i * 50); lon2Array.push(i * 50);
} }
var obj = L.layerGroup(); //in linking
var lan3Array = [];
for (var i = 1; i <= 20; i++) {//1st quadrant
lan3Array.push(i * 50);
}
var lon3Array = [];
for (var i = 15; i <= 25; i++) {
lon3Array.push(i * 50);
}
//create a variable for every field. //create a variable for every field.
//var variable_field = L.layerGroup(); //var variable_field = L.layerGroup();
//The function to wrap the result. It waits for api call to be completed. //The function to wrap the result. It waits for API call to be completed.
var callback = function (response) { var callback = function (response) {
var pages = response.query.results; var pages = response.query.results;
Object.keys(pages).forEach(function(key) { //for loop Object.keys(pages).forEach(function(key) { //for loop
var pagename = pages[key].fulltext;//getting json keys var pagename = pages[key].fulltext;//getting json keys
var url = pages[key].fullurl; var url = pages[key].fullurl;
var category = pages[key].printouts.Category[0].fulltext; var category = pages[key].printouts.Category[0].fulltext;
var category1 = pages[key].printouts.Category[1].fulltext;
var connection = pages[key].printouts.Connection[0]; var connection = pages[key].printouts.Connection[0];
var field = pages[key].printouts.Field; var field = pages[key].printouts.Field;
console.log(pagename); //printing to console console.log(pagename);
if (category == "Category:Archiving"){ if (category == "Category:Archiving"){
for(var i = 0; i < field.length; i++){ //for each page with "field"... var obj = L.layerGroup();
overlays[field[i]] = obj; //adds to object "overlays" a key and a value. key is the text displayed, value is group layer
}
var lan = lanArray[Math.floor(Math.random() * lanArray.length)]; //chooses random number from the array, x coordinate var lan = lanArray[Math.floor(Math.random() * lanArray.length)]; //chooses random number from the array, x coordinate
lanArray.splice(lanArray.indexOf(lan), 1); //removes the chosen number from the array to avoid repetitions lanArray.splice(lanArray.indexOf(lan), 1); //removes the chosen number from the array to avoid repetitions
@ -139,21 +153,25 @@ var callback = function (response) {
var archivingcoordinates = xy(lan, lon); var archivingcoordinates = xy(lan, lon);
//var travel = L.polyline([archivingcoordinates, xy(1000, 400)], {color:'lightgrey', weight: 10, lineCap: 'butt', offset: 50}).addTo(map).addTo(obj);//connects to "Archiving" //var travel = L.polyline([archivingcoordinates, xy(1000, 400)], {color:'lightgrey', weight: 10, lineCap: 'butt', offset: 50}).addTo(map).addTo(obj);//connects to "Archiving"
var myIcon = L.divIcon({ iconSize: new L.Point(200, 50), html: ' <a href=" ' + url + ' "> ' + pagename + ' </a> ' });//divIcon is the name, label. There's different types of icons.
//L.circle(archivingcoordinates, {color: 'grey', radius: 5, fillOpacity: 100}).addTo(map); var myIcon = L.divIcon({ iconSize: new L.Point(200, 35), html: ' <a href=" ' + url + ' "> ' + pagename + ' </a> ' });//divIcon is the name, label.
L.marker(archivingcoordinates, {icon: myIcon}).addTo(map).addTo(obj); L.marker(archivingcoordinates, {icon: myIcon}).addTo(map).addTo(obj);
dict[pagename] = [lan, lon];//adding to the dictionary the page name and its coordinates for(var i = 0; i < field.length; i++){ //for each page, each "field"...
overlays[field[i]] = obj; //adds to object "overlays" a key and a value. key is the text displayed, value is group layer
}
dict[pagename] = [lan, lon];//adding to the dictionary the page name and its coordinates
} }
if (category == "Category:Networking"){ if (category == "Category:Networking"){
var lan1 = lan1Array[Math.floor(Math.random() * lan1Array.length)]; //chooses random number from the array, x coordinate
lan1Array.splice(lan1Array.indexOf(lan1), 1); //removes the chosen number from the array to avoid repetitions var lan1 = lan2Array[Math.floor(Math.random() * lan2Array.length)]; //chooses random number from the array, x coordinate
lan2Array.splice(lan2Array.indexOf(lan1), 1); //removes the chosen number from the array to avoid repetitions
var lon2 = lon2Array[Math.floor(Math.random() * lon2Array.length)]; //chooses random number from the array, x coordinate var lon2 = lon2Array[Math.floor(Math.random() * lon2Array.length)]; //chooses random number from the array, x coordinate
lon2Array.splice(lon2Array.indexOf(lon2), 1); //removes the chosen number from the array to avoid repetitions lon2Array.splice(lon2Array.indexOf(lon2), 1); //removes the chosen number from the array to avoid repetitions
@ -162,13 +180,33 @@ var callback = function (response) {
//var travel = L.polyline([networkingcoordinates, xy(1500, 1200)], {color:'lightgrey', weight: 10, lineCap: 'butt'}).addTo(map); //var travel = L.polyline([networkingcoordinates, xy(1500, 1200)], {color:'lightgrey', weight: 10, lineCap: 'butt'}).addTo(map);
var myIcon = L.divIcon({ className: 'leaflet-div-icon2', iconSize: new L.Point(150, 40), html: ' <a href=" ' + url + ' "> ' + pagename + ' </a> ' }); var myIcon = L.divIcon({ className: 'leaflet-div-icon2', iconSize: new L.Point(150, 35), html: ' <a href=" ' + url + ' "> ' + pagename + ' </a> ' });
//L.circle(networkingcoordinates, {color: 'blue', radius: 5, fillOpacity: 100}).addTo(map); //L.circle(networkingcoordinates, {color: 'blue', radius: 5, fillOpacity: 100}).addTo(map);
L.marker(networkingcoordinates, {icon: myIcon}).addTo(map); L.marker(networkingcoordinates, {icon: myIcon}).addTo(map);
dict[pagename] = [lan1, lon2];//adding to the dictionary the page name and its coordinates dict[pagename] = [lan1, lon2];//adding to the dictionary the page name and its coordinates
} }
if (category1 == "Category:Linking"){
var lan3 = lan3Array[Math.floor(Math.random() * lan3Array.length)]; //chooses random number from the array, x coordinate
lan3Array.splice(lan3Array.indexOf(lan3), 1); //removes the chosen number from the array to avoid repetitions
var lon3 = lon3Array[Math.floor(Math.random() * lon3Array.length)]; //chooses random number from the array, x coordinate
lon3Array.splice(lon3Array.indexOf(lon3), 1); //removes the chosen number from the array to avoid repetitions
var linkingcoordinates = xy(lan3, lon3);
console.log(pagename, linkingcoordinates);
//var travel = L.polyline([networkingcoordinates, xy(1500, 1200)], {color:'lightgrey', weight: 10, lineCap: 'butt'}).addTo(map);
var myIcon = L.divIcon({ className: 'leaflet-div-icon3', iconSize: new L.Point(200, 35), html: ' <a href=" ' + url + ' "> ' + pagename + ' </a> ' });
//L.circle(networkingcoordinates, {color: 'blue', radius: 5, fillOpacity: 100}).addTo(map);
L.marker(linkingcoordinates, {icon: myIcon}).addTo(map);
dict[pagename] = [lan3, lon3];//adding to the dictionary the page name and its coordinates
}
if ( typeof connection != 'undefined' ) { //if there is a "connection" if ( typeof connection != 'undefined' ) { //if there is a "connection"
var connection2 = pages[key].printouts.Connection[0].fulltext; //get the value var connection2 = pages[key].printouts.Connection[0].fulltext; //get the value
connectionarray.push(connection2, pagename); //add value to array connectionarray.push(connection2, pagename); //add value to array
@ -181,8 +219,7 @@ var callback = function (response) {
return new Promise(resolve => { return new Promise(resolve => {
setTimeout(() => { setTimeout(() => {
resolve('resolved'); resolve('resolved');
console.log(overlays); //console.log(overlays);
}, 1000); }, 1000);
}); });
} }
@ -191,14 +228,24 @@ var callback = function (response) {
console.log('calling'); console.log('calling');
const result = await resolveAfter1Second(); const result = await resolveAfter1Second();
L.control.layers(null, overlays).addTo(map); //null is for no baselayer var layer = L.control.layers(null, overlays).addTo(map); //null is for no baselayer
// placing layers controls on the dropdown menu
var htmlObject = layer.getContainer(); // Returns the HTMLElement that contains the control.
var a = document.getElementById('leaflet_layers') // adds to html
function setParent(el, newParent){ // "unchilds" and gives new parent
newParent.appendChild(el);
}
setParent(htmlObject, a);
console.log(result); console.log(result); // expected output: 'resolved'
// expected output: 'resolved'
} }
asyncCall(); asyncCall();
//connecting with dash lines the pages with connections //connecting with dash lines the pages with connections
var groups = []; var groups = [];
@ -213,14 +260,10 @@ var callback = function (response) {
for(var i = 0; i < groups.length; i++){ for(var i = 0; i < groups.length; i++){
var val1 = dict[groups[i][0]]; //gets the value stored in the dictionary of the first element of each subarray in "groups" var val1 = dict[groups[i][0]]; //gets the value stored in the dictionary of the first element of each subarray in "groups"
var val2 = dict[groups[i][1]]; //gets the value of the second element var val2 = dict[groups[i][1]]; //gets the value of the second element
var travel = L.polyline([xy(val1), xy(val2)], {color:'lightgrey', weight: 2, dashArray: '10', lineCap: 'butt'}).addTo(map); //makes line. Done! var travel = L.polyline([xy(val1), xy(val2)], {color:'lightgrey', weight: 1.5, dashArray: '10', lineCap: 'butt'}).addTo(map); //makes line. Done!
} }
//console.log(removeDuplicates(fieldarray)); }; //main function ends
}; //ends big function
var scriptTag = document.createElement("script"); // Dynamically create a "script" tag var scriptTag = document.createElement("script"); // Dynamically create a "script" tag
scriptTag.src = apiEndpoint + "?" + params + "&callback=callback"; // Point to the query string scriptTag.src = apiEndpoint + "?" + params + "&callback=callback"; // Point to the query string

@ -6,12 +6,16 @@
@font-face { @font-face {
font-family: "lunchtype2"; font-family: "lunchtype2";
src: url("/var/www/html/mediawiki/skins/Vector/fonts/lunchtype25-regular_condensed-webfont.woff"); src: url("./mediawiki/skins/Vector/fonts/lunchtype25-regular_condensed-webfont.woff");
font-weight: normal; font-weight: normal;
} }
@font-face {
font-family: "standard";
src: url("./mediawiki/skins/Vector/fonts/standard-book-webfont.woff");
font-weight: normal;
}
/* code than comes with leaflet */
.leaflet-pane, .leaflet-pane,
.leaflet-tile, .leaflet-tile,
@ -147,7 +151,6 @@
.leaflet-control { .leaflet-control {
position: relative; position: relative;
z-index: 800; z-index: 800;
pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */ pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
pointer-events: auto; pointer-events: auto;
@ -177,7 +180,7 @@
} }
.leaflet-right { .leaflet-right {
right: 1%; right: 0;
} }
.leaflet-top .leaflet-control { .leaflet-top .leaflet-control {
@ -190,7 +193,7 @@
margin-left: 10px; margin-left: 10px;
} }
.leaflet-right .leaflet-control { .leaflet-right .leaflet-control {
margin-right: 10px; /*margin-right: 10px;*/
} }
@ -281,7 +284,7 @@ svg.leaflet-image-layer.leaflet-interactive path {
/* visual tweaks */ /* visual tweaks */
.leaflet-container { .leaflet-container {
background: #ddd; /*background: #ddd;*/
outline: 0; outline: 0;
} }
@ -293,13 +296,13 @@ svg.leaflet-image-layer.leaflet-interactive path {
} }
.leaflet-zoom-box { .leaflet-zoom-box {
border: 20px dotted #38f; border: 20px dotted #38f;
background: rgba(255,255,255,0.5); /*background: rgba(255,255,255,0.5);*/
} }
/* general typography */ /* general typography */
.leaflet-container { .leaflet-container {
font-family: "lunchtype", serif; font-family: "standard", serif;
font-size: calc(10px + 0.5vw); font-size: calc(10px + 0.5vw);
line-height: 150%; line-height: 150%;
@ -307,15 +310,13 @@ svg.leaflet-image-layer.leaflet-interactive path {
/* general toolbar styles */ /* general toolbar styles */
.leaflet-bar { .leaflet-bar {
box-shadow: 0 1px 5px rgba(0,0,0,0.65); box-shadow: 0 1px 5px rgba(0,0,0,0.65);
border-radius: 4px; border-radius: 4px;
} }
.leaflet-bar a, .leaflet-bar a,
.leaflet-bar a:hover { .leaflet-bar a:hover {
background-color: #fff; /*background-color: #fff;*/
border-bottom: 1px solid #ccc; border-bottom: 1px solid #ccc;
width: 26px; width: 26px;
height: 26px; height: 26px;
@ -325,14 +326,14 @@ svg.leaflet-image-layer.leaflet-interactive path {
text-decoration: none; text-decoration: none;
color: black; color: black;
} }
.leaflet-bar a, .leaflet-bar a {
.leaflet-control-layers-toggle {
background-position: 50% 50%; background-position: 50% 50%;
background-repeat: no-repeat; background-repeat: no-repeat;
display: block; display: block;
} }
.leaflet-bar a:hover { .leaflet-bar a:hover {
background-color: #f4f4f4; /*background-color: #f4f4f4;*/
} }
.leaflet-bar a:first-child { .leaflet-bar a:first-child {
border-top-left-radius: 4px; border-top-left-radius: 4px;
@ -345,7 +346,7 @@ svg.leaflet-image-layer.leaflet-interactive path {
} }
.leaflet-bar a.leaflet-disabled { .leaflet-bar a.leaflet-disabled {
cursor: default; cursor: default;
background-color: #f4f4f4; /*background-color: #f4f4f4;*/
color: #bbb; color: #bbb;
} }
@ -379,55 +380,71 @@ svg.leaflet-image-layer.leaflet-interactive path {
/* layers control */ /* layers control */
.leaflet-control-layers { .leaflet-control-layers {
box-shadow: 0 1px 5px rgba(0,0,0,0.4); box-shadow: none;
background: #fff; /*background-color: rgba(237, 237, 237, 0.95);*/
border-radius: 5px;
}
.leaflet-control-layers-toggle {
background-image: url(images/layers.png);
width: 36px;
height: 36px;
}
.leaflet-retina .leaflet-control-layers-toggle {
background-image: url(images/layers-2x.png);
background-size: 26px 26px;
} }
.leaflet-touch .leaflet-control-layers-toggle {
width: 44px; .leaflet-control-layers-toggle, .leaflet-retina .leaflet-control-layers-toggle {
height: 44px; display: none;
height: 0;
} }
.leaflet-control-layers .leaflet-control-layers-list, .leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle { .leaflet-control-layers-expanded {
display: none; display: block;
} }
.leaflet-control-layers-expanded .leaflet-control-layers-list { .leaflet-control-layers-expanded .leaflet-control-layers-list {
display: block; display: block;
position: relative; position: relative;
} }
.leaflet-control-layers-expanded {
padding: 6px 10px 6px 6px;
color: #333;
background: #fff;
}
.leaflet-control-layers-scrollbar { .leaflet-control-layers-scrollbar {
overflow-y: scroll; overflow-y: scroll;
overflow-x: hidden; overflow-x: hidden;
padding-right: 5px; padding-right: 5px;
} }
.leaflet-control-layers-selector { .leaflet-control-layers-selector {
margin-top: 2px; margin-top: 2px;
position: relative; position: relative;
top: 1px; top: 1px;
} }
.leaflet-control-layers label { .leaflet-control-layers label {
font-family: "standard";
display: block; display: block;
left: 0;
/*float: left;*/
margin-right: 3%;
cursor: pointer;
color: black;
font-size: calc(8px + 0.2vw);
line-height: 15px;
font-size: calc(9px + 0.2vw);
border-bottom: 1.5px solid black;
margin: 1%;
width: 20em;
text-transform: capitalize;
} }
.leaflet-control-layers-separator {
height: 0; .leaflet-control-layers label:hover{
border-top: 1px solid #ddd; color: grey;
margin: 5px -10px 5px -6px;
} }
input[type="checkbox"]:not(:checked),
input[type="checkbox"]:checked {
display: none;
}
input[type="checkbox"]:not(:checked) {
}
input[type="checkbox"]:checked{
}
/* Default icon URLs */ /* Default icon URLs */
.leaflet-default-icon-path { .leaflet-default-icon-path {
@ -435,27 +452,10 @@ svg.leaflet-image-layer.leaflet-interactive path {
} }
/* attribution and scale controls */ /* attribution and scale controls */
.leaflet-container .leaflet-control-attribution { .leaflet-container .leaflet-control-attribution {
background: #fff; display: none;
background: rgba(255, 255, 255, 0.7);
margin: 0;
}
.leaflet-control-attribution,
.leaflet-control-scale-line {
padding: 0 5px;
color: #333;
}
.leaflet-control-attribution a {
text-decoration: none;
}
.leaflet-control-attribution a:hover {
text-decoration: underline;
}
.leaflet-container .leaflet-control-attribution,
.leaflet-container .leaflet-control-scale {
font-size: 11px;
} }
.leaflet-left .leaflet-control-scale { .leaflet-left .leaflet-control-scale {
margin-left: 5px; margin-left: 5px;
} }
@ -472,7 +472,7 @@ svg.leaflet-image-layer.leaflet-interactive path {
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
background: #fff; /*background: #fff;*/
background: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.5);
} }
.leaflet-control-scale-line:not(:first-child) { .leaflet-control-scale-line:not(:first-child) {
@ -600,7 +600,7 @@ svg.leaflet-image-layer.leaflet-interactive path {
.leaflet-tooltip { .leaflet-tooltip {
position: absolute; position: absolute;
padding: 6px; padding: 6px;
background-color: #fff; /*background-color: #fff;*/
border: 1px solid #fff; border: 1px solid #fff;
border-radius: 3px; border-radius: 3px;
color: #222; color: #222;
@ -677,52 +677,46 @@ svg.leaflet-image-layer.leaflet-interactive path {
display:none !important; display:none !important;
} }
/* my code from here */
/* my code from here */
.leaflet-container { .leaflet-container {
background-color:rgba(255,0,0,0.0); /*background-color:rgba(255,0,0,0.0);*/
} }
html, body { html, body {
height: 100%; height: 100%;
margin: 0; margin: 0;
/*background-image: url("IMG_8709.jpg");*/ /*background-image: url("IMG_8709.jpg");*/
background-color: white;
background-size: cover;
} }
#map { #map {
width:100%; width:100%;
height:100%; height:100%;
overflow: hidden;
} }
.leaflet-div-icon { .leaflet-div-icon {
background-color: transparent; background-color: transparent;
color: black; color: black;
border: none; border: none;
font-size: calc(9px + 2vw); font-size: calc(9px + 1.5vw);
font-family: "lunchtype2"; font-family: "lunchtype2";
font-weight: bold; font-weight: bold;
text-transform: uppercase; text-transform: uppercase;
margin-left: 0px; margin-left: 0px;
margin-top: 0px; margin-top: 0px;
text-align: center; text-align: center;
} }
.leaflet-div-icon a { .leaflet-div-icon a {
font-family: "lunchtype"; font-family: "standard";
font-size: calc(9px + 0.2vw); font-size: calc(9px + 0.2vw);
text-transform: none; text-transform: none;
text-decoration: none; text-decoration: none;
font-weight: normal; font-weight: normal;
border: 2px solid lightgrey; border: 2px solid #e3e3e3;
border-radius: 500px; border-radius: 500px;
background-color: lightgrey; background-color: #e3e3e3;
padding: 5px; padding: 5px;
transform: rotate(45deg); transform: rotate(45deg);
-moz-transform: rotate(-45deg); -moz-transform: rotate(-45deg);
@ -733,16 +727,15 @@ html, body {
color: white; color: white;
border: none; border: none;
font-size: calc(9px + 0.8vw); font-size: calc(9px + 0.8vw);
font-family: "lunchtype"; font-family: "standard";
font-weight: bold; font-weight: bold;
margin-left: 0px; margin-left: 0px;
margin-top: 0px; margin-top: 0px;
text-align: center; text-align: center;
} }
.leaflet-div-icon2 a { .leaflet-div-icon2 a {
font-family: "lunchtype"; font-family: "standard";
font-size: calc(9px + 0.2vw); font-size: calc(9px + 0.2vw);
text-transform: none; text-transform: none;
text-decoration: none; text-decoration: none;
@ -754,18 +747,47 @@ html, body {
color: white; color: white;
} }
.leaflet-div-icon3 a {
font-family: "standard";
font-size: calc(9px + 0.2vw);
text-transform: none;
text-decoration: none;
font-weight: normal;
border: 2px solid #929292;
border-radius: 500px;
background-color: #929292;
padding: 5px;
color: black;
}
.leaflet-div-icon4{
font-size: calc(9px + 1.2vw);
font-family: "lunchtype2";
font-weight: bold;
text-transform: uppercase;
text-align: center;
color: black;
}
@keyframes fade { .leaflet-div-icon5 {
0% {left:0px; top:0px;} font-size: calc(9px + 1.2vw);
75% {left:0px; top:50px;} font-family: "lunchtype2";
100% {left:0px; top:0px;} font-weight: bold;
text-transform: uppercase;
text-align: center;
color: lightgrey;
} }
.blinking { .leaflet-div-icon6 {
animation: fade 3s linear infinite alternate; font-size: calc(9px + 1.2vw);
font-family: "lunchtype2";
font-weight: bold;
text-transform: uppercase;
text-align: center;
color: #706f6f;
} }
.menu{ .menu{
position: absolute; position: absolute;
top: 0px; top: 0px;
@ -773,20 +795,83 @@ html, body {
z-index: 1; z-index: 1;
} }
h1, h2 {
font-family: "authentic";
margin:1%;
}
h1 { h1 {
background-color: blue; font-family: "standard";
color: white; font-size: 12px;
font-size: calc(10px + 1vw); margin-left: 1%;
text-transform: uppercase; border-bottom: 1.5px solid black;
width: 75%;
float: left;
line-height: 150%;
} }
h2 { h2 {
display: inline; font-family: "standard";
font-size: calc(10px + 0.5vw); text-transform: uppercase;
padding-right: 10%; font-size: 12px;
margin: 1%;
}
h3 {
font-size: calc(11px + 1vw);
border-bottom: 1.5px solid black;
margin: 1%;
height: 13px;
text-transform: capitalize;
}
.tags_menu {
position: fixed;
z-index: 1000;
top: 65%;
background-color: rgba(237, 237, 237, 0.95);
left: 1em;
}
.tags_header{
width: 10em;
}
.dropbtn {
border: none;
padding: 16px;
cursor: pointer;
background: url(./images/layers-2x.png);
background-repeat: no-repeat;
background-size: auto 80%;
background-position: center;
float: right;
}
#myDropdownIcon {
display: none;
border: none;
padding: 16px;
cursor: pointer;
position: absolute;
top: 0;
right: 0;
background: url(./images/layers.png);
background-repeat: no-repeat;
background-size: auto 80%;
background-position: center;
display: inline-block;
vertical-align: middle;
} }
.dropdown-content {
display: none;
position:static;
z-index: 10000;
width: 10em;
overflow: hidden;
}
.dropdown-content a {
color: black;
text-decoration: none;
display: block;
}
.show {display: block;}

Loading…
Cancel
Save