How to use the @here/harp-mapview-decoder.TileFactory function in @here/harp-mapview-decoder

To help you get started, we’ve selected a few @here/harp-mapview-decoder 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 heremaps / harp.gl / @here / harp-examples / src / multiview_sync-filter-view.ts View on Github external
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
        })
    };
github heremaps / harp.gl / @here / harp-geojson-datasource / lib / GeoJsonDataSource.ts View on Github external
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
        });
    }
github heremaps / harp.gl / @here / harp-examples / src / datasource_custom.ts View on Github external
constructor(options: TileDataSourceOptions) {
            super(new TileFactory(CustomTile), options);
        }
    }
github heremaps / harp.gl / @here / harp-omv-datasource / lib / OmvDataSource.ts View on Github external
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 =