forked from MapComplete/MapComplete
More cleaning up
This commit is contained in:
parent
778044d0fb
commit
4948524f91
22 changed files with 36 additions and 65 deletions
|
@ -1,6 +1,5 @@
|
|||
console.log("AVAILABLE LAYERS")
|
||||
import * as editorlayerindex from "../../assets/editor-layer-index.json"
|
||||
import {BaseLayer} from "../../Models/BaseLayer";
|
||||
import BaseLayer from "../../Models/BaseLayer";
|
||||
import * as L from "leaflet";
|
||||
import * as X from "leaflet-providers";
|
||||
import {UIEventSource} from "../UIEventSource";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import {UIEventSource} from "../UIEventSource";
|
||||
import {BaseLayer} from "../../Models/BaseLayer";
|
||||
import BaseLayer from "../../Models/BaseLayer";
|
||||
import AvailableBaseLayers from "./AvailableBaseLayers";
|
||||
import Loc from "../../Models/Loc";
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import escapeHtml from "escape-html";
|
||||
// @ts-ignore
|
||||
import {OsmConnection, UserDetails} from "./OsmConnection";
|
||||
import {UIEventSource} from "../UIEventSource";
|
||||
import {ElementStorage} from "../ElementStorage";
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import {Basemap} from "../Leaflet/Basemap";
|
||||
import $ from "jquery"
|
||||
import State from "../../State";
|
||||
export class Geocoding {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import {UIEventSource} from "../UIEventSource";
|
||||
import {OsmConnection, UserDetails} from "./OsmConnection";
|
||||
import UserDetails, {OsmConnection} from "./OsmConnection";
|
||||
import {Utils} from "../../Utils";
|
||||
|
||||
export class OsmPreferences {
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
import codegrid from "codegrid-js";
|
||||
|
||||
export default class CodeGrid {
|
||||
private static readonly grid = CodeGrid.InitGrid();
|
||||
|
||||
|
||||
public static getCode(lat: any, lon: any, handle: (error, code) => void) {
|
||||
CodeGrid.grid.getCode(lat, lon, handle);
|
||||
}
|
||||
|
||||
|
||||
private static InitGrid(): any {
|
||||
const grid = codegrid.CodeGrid("./tiles/");
|
||||
|
||||
// Heat up the caches
|
||||
grid.getCode(50.2, 3.2, (error, code) => {
|
||||
});
|
||||
grid.getCode(52.5072, 13.4248, (error, code) => {
|
||||
});
|
||||
grid.getCode(40.4781, -3.7034, () => {
|
||||
});
|
||||
return grid;
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue