Added Prelim Airport Display to Map (INFO-Less)

This commit is contained in:
LAX18 Development
2021-12-18 09:56:58 -06:00
parent 2e6b6c440e
commit c19b0eddb1
4 changed files with 259846 additions and 1 deletions
-1
View File
@@ -264,7 +264,6 @@
<div id="map_container">
<div id="map_canvas"></div>
</div>
<div id="sidebar_container">
<div id="radar_container">
<div id="sidebar_canvas">
+9
View File
@@ -58,6 +58,15 @@ function createBaseLayers() {
maxZoom: 19
}),
}));
online.push(new ol.layer.Vector({
title: 'World Airports',
source: new ol.source.Vector({
url: 'json/wa_geojson.json',
format: new ol.format.GeoJSON()
})
}))
if (ChartBundleLayers) {
var chartbundleTypes = {
sec: "Sectional Charts",
+259816
View File
File diff suppressed because it is too large Load Diff
+21
View File
@@ -0,0 +1,21 @@
var fs = require("fs")
const world_airports = require("../json/world_airports.json");
var geojson_features = []
var geojson = {
"type": "FeatureCollection",
"features": geojson_features
}
for (airport in world_airports) {
var tempjson = {}
tempjson.type = "Feature"
tempjson.geometry = {}
tempjson.geometry.type = "Point"
tempjson.geometry.coordinates = [world_airports[airport].lon, world_airports[airport].lat]
tempjson.properties = {}
tempjson.properties.name = world_airports[airport].name + " (" + airport + ")"
geojson_features.push(tempjson)
}
console.log(geojson)
fs.writeFileSync('wa_geojson.json', JSON.stringify(geojson))