mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Completed ground elevation provider and added to mouse info panel
This commit is contained in:
@@ -631,18 +631,6 @@ export class Map extends L.Map {
|
||||
/* Update the polygon being drawn with the current position of the mouse cursor */
|
||||
this.getSelectedCoalitionArea()?.moveActiveVertex(e.latlng);
|
||||
}
|
||||
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', `api/elevation/${this.getMouseCoordinates().lat}/${this.getMouseCoordinates().lng}`, true);
|
||||
xhr.responseType = 'json';
|
||||
xhr.onload = () => {
|
||||
var status = xhr.status;
|
||||
if (status === 200)
|
||||
console.log(xhr.response);
|
||||
else
|
||||
console.error(`Error retrieving country codes`)
|
||||
};
|
||||
xhr.send();
|
||||
}
|
||||
|
||||
#onKeyDown(e: any) {
|
||||
|
||||
Reference in New Issue
Block a user