Commit 77e5c0cd authored by Eric's avatar Eric
Browse files

bugfix: make the layers popup larger.

parent 0183f9af
...@@ -208,3 +208,6 @@ MAP_DETAILS { ...@@ -208,3 +208,6 @@ MAP_DETAILS {
text-align: center; text-align: center;
display: inline; display: inline;
} }
.leaflet-control-layers-expanded, .leaflet-control-layers-list {
height: 200px !important;
}
\ No newline at end of file
...@@ -223,30 +223,6 @@ echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8">' . "\n ...@@ -223,30 +223,6 @@ echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8">' . "\n
//echo $page_header . "\n"; //echo $page_header . "\n";
echo "<title>" . $USER_SETTINGS['pageTitle'] . "</title>\n"; echo "<title>" . $USER_SETTINGS['pageTitle'] . "</title>\n";
/*
* check for the users custom.css files and use them if exists...
* load the "-default" files first (meshmap-default.css)
* and the user files second, that way changes in the users file(s)
* will override the default ones (if I understand CSS correctly)
*/
echo "<link href='css/meshmap-default.css' rel='stylesheet'>\n";
if (file_exists ("./css/meshmap.css")) {
echo "<link href='css/meshmap.css' rel='stylesheet'>\n";
}
//same thing but for legend.css (which controls the map legend)
echo "<link href='css/map-legend-default.css' rel='stylesheet'>\n";
if (file_exists ("./css/map-legend.css")) {
echo "<link href='css/map-legend.css' rel='stylesheet'>\n";
}
//same thing, but for some custom controls
//these can be used to move the main buttons (on the left) around on the map
echo "<link href='css/leaflet-custom-control-vertical-center-default.css' rel='stylesheet'>\n";
if (file_exists ("./css/leaflet-custom-control-vertical-center.css")) {
echo "<link href='css/leaflet-custom-control-vertical-center.css' rel='stylesheet'>\n";
}
/* /*
* If the client has internet access load everything from there * If the client has internet access load everything from there
* if not, use the local resources. * if not, use the local resources.
...@@ -277,6 +253,31 @@ echo "<link href='css/L.Control.SlideMenu.css' rel='stylesheet'>\n"; ...@@ -277,6 +253,31 @@ echo "<link href='css/L.Control.SlideMenu.css' rel='stylesheet'>\n";
echo "<script src='javascripts/leaflet-ruler.js'></script>\n"; echo "<script src='javascripts/leaflet-ruler.js'></script>\n";
echo "<link rel='stylesheet' type='text/css' href='css/leaflet-ruler.css'>\n"; echo "<link rel='stylesheet' type='text/css' href='css/leaflet-ruler.css'>\n";
/*
* check for the users custom.css files and use them if exists...
* load the "-default" files first (meshmap-default.css)
* and the user files second, that way changes in the users file(s)
* will override the default ones (if I understand CSS correctly)
* These can also be used to override CSS values from anything above!
*/
echo "<link href='css/meshmap-default.css' rel='stylesheet'>\n";
if (file_exists ("./css/meshmap.css")) {
echo "<link href='css/meshmap.css' rel='stylesheet'>\n";
}
//same thing but for legend.css (which controls the map legend)
echo "<link href='css/map-legend-default.css' rel='stylesheet'>\n";
if (file_exists ("./css/map-legend.css")) {
echo "<link href='css/map-legend.css' rel='stylesheet'>\n";
}
//same thing, but for some custom controls
//these can be used to move the main buttons (on the left) around on the map
echo "<link href='css/leaflet-custom-control-vertical-center-default.css' rel='stylesheet'>\n";
if (file_exists ("./css/leaflet-custom-control-vertical-center.css")) {
echo "<link href='css/leaflet-custom-control-vertical-center.css' rel='stylesheet'>\n";
}
echo "\n"; echo "\n";
echo "</head>\n"; echo "</head>\n";
echo "<body>\n"; echo "<body>\n";
......
Markdown is supported
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