How to use the @here/harp-geojson-datasource/index-worker.GeoJsonTileDecoderService.start function in @here/harp-geojson-datasource

To help you get started, we’ve selected a few @here/harp-geojson-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 / decoder / decoder.ts View on Github external
* SPDX-License-Identifier: Apache-2.0
 */

declare let self: Worker & {
    importScripts(..._scripts: string[]): void;
};

self.importScripts("three.min.js");

import { GeoJsonTileDecoderService } from "@here/harp-geojson-datasource/index-worker";
import { OmvTileDecoderService, OmvTilerService } from "@here/harp-omv-datasource/index-worker";
import { CustomDecoderService } from "./custom_decoder";

OmvTileDecoderService.start();
OmvTilerService.start();
GeoJsonTileDecoderService.start();

//Following code is only needed for datasource_custom example.
// snippet:custom_datasource_example_custom_decoder_service_start.ts
CustomDecoderService.start();
// end:custom_datasource_example_custom_decoder_service_start.ts