How to use the @here/harp-omv-datasource/index-worker.OmvTileDecoder function in @here/harp-omv-datasource

To help you get started, we’ve selected a few @here/harp-omv-datasource 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 / hello_one-thread.ts View on Github external
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
}