Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const mapViews = {
view1: initMapView("mapCanvas", 0, 0, defaultTheme),
view2: initMapView("mapCanvas2", 1, 0, defaultTheme)
};
// end:vislib_multiview_mapDiffView_1.ts
// snippet:vislib_multiview_mapDiffView_2.ts
const dataSources = {
omvDataSource1: new OmvDataSource({
baseUrl: "https://xyz.api.here.com/tiles/osmbase/256/all",
apiFormat: APIFormat.MapzenV2,
createTileInfo: true,
styleSetName: "tilezen",
gatherFeatureIds: true,
showMissingTechniques: true,
tileFactory: new TileFactory(OmvDebugLabelsTile),
maxZoomLevel: 17
}),
omvDataSource2: new OmvDataSource({
baseUrl: "https://xyz.api.here.com/tiles/osmbase/256/all",
apiFormat: APIFormat.MapzenV2,
createTileInfo: true,
styleSetName: "tilezen",
gatherFeatureIds: true,
showMissingTechniques: true,
tileFactory: new TileFactory(OmvDebugLabelsTile),
maxZoomLevel: 17
})
};
constructor(readonly params: GeoJsonDataSourceParameters) {
super(new TileFactory(GeoJsonTile), {
styleSetName: params.styleSetName || "geojson",
name: params.name,
tilingScheme: webMercatorTilingScheme,
dataProvider: params.dataProvider,
concurrentDecoderServiceName: "geojson-tile-decoder",
storageLevelOffset: -1
});
}
constructor(options: TileDataSourceOptions) {
super(new TileFactory(CustomTile), options);
}
}
constructor(private m_params: OmvWithRestClientParams | OmvWithCustomDataProvider) {
super(m_params.tileFactory || new TileFactory(OmvTile), {
styleSetName: m_params.styleSetName || "omv",
name: m_params.name,
tilingScheme: webMercatorTilingScheme,
dataProvider: getDataProvider(m_params),
concurrentDecoderServiceName: OMV_TILE_DECODER_SERVICE_TYPE,
decoder: m_params.decoder,
concurrentDecoderScriptUrl: m_params.concurrentDecoderScriptUrl,
copyrightInfo: m_params.copyrightInfo,
copyrightProvider: m_params.copyrightProvider,
minZoomLevel: getOptionValue(m_params.minZoomLevel, 1),
maxZoomLevel: getOptionValue(m_params.maxZoomLevel, 14),
storageLevelOffset: getOptionValue(m_params.storageLevelOffset, -1)
});
this.cacheable = true;
this.addGroundPlane =