1

More blue line

This commit is contained in:
Evan Pratten 2024-02-03 14:04:04 -05:00
parent fd60f22d25
commit bdb0417f98
2 changed files with 393 additions and 2 deletions

View File

@ -181,7 +181,7 @@
},
{
"name": "Xnor50 Line",
"color": "grey",
"color": "brown",
"line_segments": [
[
{
@ -812,5 +812,375 @@
}
]
]
},
{
"name": "Blue Line",
"color": "blue",
"line_segments": [
[
{
"x": 326,
"z": -211
},
{
"x": 131,
"z": -211
},
{
"x": 131,
"z": -206
},
{
"x": 114,
"z": -206
},
{
"x": 114,
"z": -203
},
{
"x": 41,
"z": -203
},
{
"x": 41,
"z": -211
},
{
"x": 27,
"z": -211
},
{
"x": 27,
"z": -221
},
{
"x": -113,
"z": -221
},
{
"x": -113,
"z": -216
},
{
"x": -172,
"z": -216
},
{
"x": -172,
"z": -224
},
{
"x": -237,
"z": -224
},
{
"x": -237,
"z": -218
},
{
"x": -249,
"z": -218
},
{
"x": -249,
"z": -214
},
{
"x": -267,
"z": -214
},
{
"x": -267,
"z": -217
},
{
"x": -277,
"z": -217
},
{
"x": -277,
"z": -218
},
{
"x": -453,
"z": -218
},
{
"x": -453,
"z": -214
},
{
"x": -473,
"z": -214
},
{
"x": -473,
"z": -218
},
{
"x": -549,
"z": -218
},
{
"x": -549,
"z": -217
},
{
"x": -564,
"z": -217
},
{
"x": -564,
"z": -216
},
{
"x": -601,
"z": -216
},
{
"x": -601,
"z": -213
},
{
"x": -615,
"z": -213
},
{
"x": -615,
"z": -131
}
],
[
{
"x": 326,
"z": -213
},
{
"x": 29,
"z": -213
},
{
"x": 29,
"z": -223
},
{
"x": -173,
"z": -223
},
{
"x": -173,
"z": -224
},
{
"x": -237,
"z": -224
},
{
"x": -237,
"z": -221
},
{
"x": -251,
"z": -221
},
{
"x": -251,
"z": -216
},
{
"x": -263,
"z": -216
},
{
"x": -263,
"z": -219
},
{
"x": -275,
"z": -219
},
{
"x": -275,
"z": -220
},
{
"x": -569,
"z": -220
},
{
"x": -569,
"z": -219
},
{
"x": -597,
"z": -219
},
{
"x": -597,
"z": -218
}
],
[
{
"x": 326,
"z": -215
},
{
"x": 131,
"z": -215
},
{
"x": 31,
"z": -215
},
{
"x": 31,
"z": -225
},
{
"x": -172,
"z": -225
},
{
"x": -172,
"z": -226
},
{
"x": -239,
"z": -226
},
{
"x": -239,
"z": -223
},
{
"x": -249,
"z": -223
},
{
"x": -249,
"z": -224
},
{
"x": -264,
"z": -224
},
{
"x": -264,
"z": -221
},
{
"x": -273,
"z": -221
},
{
"x": -273,
"z": -222
},
{
"x": -622,
"z": -222
}
],
[
{
"x": 326,
"z": -217
},
{
"x": 131,
"z": -217
},
{
"x": 131,
"z": -222
},
{
"x": 113,
"z": -222
},
{
"x": 113,
"z": -225
},
{
"x": 34,
"z": -225
},
{
"x": 34,
"z": -227
},
{
"x": -113,
"z": -227
},
{
"x": -113,
"z": -232
},
{
"x": -160,
"z": -232
},
{
"x": -160,
"z": -230
},
{
"x": -172,
"z": -230
},
{
"x": -172,
"z": -226
},
{
"x": -267,
"z": -226
},
{
"x": -267,
"z": -224
},
{
"x": -453,
"z": -224
},
{
"x": -453,
"z": -228
},
{
"x": -473,
"z": -228
},
{
"x": -473,
"z": -224
},
{
"x": -593,
"z": -224
},
{
"x": -593,
"z": -225
},
{
"x": -598,
"z": -225
},
{
"x": -612,
"z": -236
},
{
"x": -612,
"z": -258
}
]
]
}
]

View File

@ -138,4 +138,25 @@ map.on('zoomend', function (e) {
} else {
document.querySelector('#leaflet-pixelator').remove();
}
});
});
// Create a mouse position display
var mousePosition = L.control({ position: 'bottomleft' });
mousePosition.onAdd = function (map) {
this._div = L.DomUtil.create('div', 'mouse-position');
this._div.style.padding = '5px';
this._div.style.backgroundColor = 'rgba(255, 255, 255, 0.5)';
this._div.style.border = '1px solid #000000';
this._div.style.borderRadius = '5px';
this._div.style.display = 'none';
return this._div;
};
mousePosition.addTo(map);
// Update the mouse position display
map.on('mousemove', function (e) {
var x = Math.floor(e.latlng.lng);
var z = Math.floor(e.latlng.lat * -1);
mousePosition._div.innerHTML = `X: ${x}, Z: ${z}`;
mousePosition._div.style.display = '';
});