mapcomplete/test.ts

14 lines
394 B
TypeScript
Raw Normal View History

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