How to use the @here/harp-mapview-decoder/index-worker.WorkerServiceManager.getInstance 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-geojson-datasource / lib / GeoJsonDecoder.ts View on Github external
static start() {
        WorkerServiceManager.getInstance().register({
            serviceType: "geojson-tile-decoder",
            factory: (serviceId: string) =>
                TileDecoderService.start(serviceId, new GeoJsonTileDecoder())
        });
    }
}
github heremaps / harp.gl / @here / harp-examples / decoder / custom_decoder.ts View on Github external
static start() {
        WorkerServiceManager.getInstance().register({
            serviceType: CUSTOM_DECODER_SERVICE_TYPE,
            factory: (serviceId: string) => TileDecoderService.start(serviceId, new CustomDecoder())
        });
    }
}
github heremaps / harp.gl / @here / harp-omv-datasource / lib / OmvDecoder.ts View on Github external
static start() {
        WorkerServiceManager.getInstance().register({
            serviceType: OMV_TILE_DECODER_SERVICE_TYPE,
            factory: (serviceId: string) =>
                TileDecoderService.start(serviceId, new OmvTileDecoder())
        });
    }
}