Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
mapView = new MapView({
canvas,
theme: options.theme,
preserveDrawingBuffer: true,
pixelRatio: 1
});
const defaultLookAt: LookAtParams = {
latitute: 53.3,
longitude: 14.6,
distance: 200000,
tilt: 0,
azimuth: 0
};
const lookAt = mergeWithOptions(defaultLookAt, options.lookAt);
mapView.lookAt(
new GeoCoordinates(lookAt.latitute, lookAt.longitude),
lookAt.distance,
lookAt.tilt,
lookAt.azimuth
);
// Shutdown errors cause by firefox bug
mapView.renderer.getContext().getShaderInfoLog = (x: any) => {
return "";
};
const geoJsonDataSource = new OmvDataSource({
decoder: new OmvTileDecoder(),
dataProvider: new GeoJsonDataProvider(
"geojson",