Added Prelim Airport Display to Map (INFO-Less)
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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
File diff suppressed because it is too large
Load Diff
@@ -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))
|
||||
Reference in New Issue
Block a user