mapcomplete/test.ts

14 lines
394 B
TypeScript
Raw Normal View History

2020-07-22 15:44:47 +02:00
import { DropDown } from "./UI/Input/DropDown";
import { BaseLayers, Basemap } from "./Logic/Basemap";
2020-07-21 00:07:04 +02:00
2020-07-22 15:44:47 +02:00
let baseLayerOptions = [];
2020-07-22 15:44:47 +02:00
Object.entries(BaseLayers.baseLayers).forEach(([key, value], i) => {
// console.log(key, value, i);
baseLayerOptions.push({value: i, shown: key});
});
2020-07-21 23:31:41 +02:00
2020-07-22 15:44:47 +02:00
console.log(Basemap);
2020-07-21 23:31:41 +02:00
2020-07-22 15:44:47 +02:00
new DropDown(`label`, baseLayerOptions, Basemap.CurrentLayer).AttachTo("maindiv");