How to use the geojs.version function in geojs

To help you get started, we’ve selected a few geojs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OpenGeoscience / jupyterlab_geojs / src / geojsbuilder.ts View on Github external
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;