Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export interface ILayerModel {
features?: IFeatureModel[];
layerType: string;
options?: JSONObject;
}
export interface IMapModel {
layers?: ILayerModel[];
options?: JSONObject;
viewpoint?: JSONObject;
}
import { ColorFormat, ColorMap } from 'colorkit';
import * as geo from 'geojs'
console.debug(`Using geojs ${geo.version}`);
// Static var used to disable OSM layer renderer;
// For testing, so that we don't need to mock html canvas
let _disableOSMRenderer: boolean = false;
class GeoJSBuilder {
// The GeoJS instance
private _geoMap: any;
// Hard code UI layer and tooltip logic
private _tooltipLayer: any;
private _tooltip: any;
private _tooltipElem: HTMLElement;
private _preElem: HTMLPreElement;