A leaflet layer for visualizing wellbore related data.
npm install --save @equinor/videx-map
// ES6
import { WellboreModule, FaultlineModule, ... } from '@equinor/videx-map';
Videx map is divided into various modules with specific purposes. These modules can be used individually or combined into a single WebGL context.
Module responsible for visualizing wellbores with roots and paths.
// Example configuration
const wellbores: WellboreModule = new WellboreModule({
rootRadius: 0.3,
scale: 1.5,
labelBgOpacity: 0.2,
zoomOrigin: 0,
scaling: zoom => factors[zoom] || 0,
rootResize: {
base: 1.75,
multiplier: 0.5,
zoomReference: 12.0,
},
onHighlightOn: event => {
// Special 'HighlightOn' logic ...
},
onHighlightOff: () => {
// Special 'HighlightOff' logic ...
},
onWellboreClick: wellbore => {
// Special 'WellboreClick' logic ...
}
});
Module responsible for visualizing faultlines on fields.
// Example configuration
const faultlines: FaultlineModule = new FaultlineModule({
color: 0xFF00FF,
alpha: 0.75,
outlineWidth: 0.13,
});
Module responsible for visualizing field outlines.
// Example configuration
const outlines: OutlineModule = new OutlineModule({
zoomOrigin: 12,
lineWidth: 0.1,
scaling: zoom => (1.5 ** -zoom),
});
We greatly appreciate contributions to this repository, see our contribution page on how to get started.
$ git clone https://github.com/equinor/videx-map.git
$ npm install
$ npm start