leaflet: Reimplement coordinate box on bottom left
I'd move the event setup into addTo, but JS is utter garbage and thinks "this" in a function callback like that should be whatever, not where you actually define it.
This commit is contained in:
@@ -8,8 +8,6 @@
|
||||
<meta name="generator" content="Minecraft-Overviewer {version}" />
|
||||
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
|
||||
|
||||
<link rel="stylesheet" href="overviewer.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript" src="jquery.min.js"></script>
|
||||
|
||||
<script type="text/javascript" src="overviewerConfig.js"></script>
|
||||
@@ -18,6 +16,7 @@
|
||||
|
||||
<link rel="stylesheet" href="leaflet.css" />
|
||||
<script src="leaflet.js"></script>
|
||||
<link rel="stylesheet" href="overviewer.css" type="text/css" />
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
@@ -164,3 +164,12 @@ div.worldcontrol select {
|
||||
color: #333;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
.leaflet-container .coordbox {
|
||||
box-shadow: none;
|
||||
font-size: 11px;
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
margin: 0;
|
||||
padding: 0 5px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user