Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
sampleMapView.resize(window.innerWidth, window.innerHeight);
});
// end:vislib_hello_onethread_example_3.ts
return sampleMapView;
}
const mapView = initializeMapView("mapCanvas");
// snippet:vislib_hello_onethread_example_4.ts
const omvDataSource = new OmvDataSource({
baseUrl: "https://xyz.api.here.com/tiles/osmbase/256/all",
apiFormat: APIFormat.MapzenV2,
styleSetName: "tilezen",
maxZoomLevel: 17,
decoder: new OmvTileDecoder()
});
// end:vislib_hello_onethread_example_4.ts
// snippet:vislib_hello_onethread_example_5.ts
mapView.addDataSource(omvDataSource);
// end:vislib_hello_onethread_example_5.ts
}