Skip to content

Documentation / @giro3d/piero / modules / loaders / OSMLoader

Class: OSMLoader ​

Defined in: packages/piero/src/modules/loaders/OSMLoader.ts:26

Add support for the OpenStreetMap basemap.

Implements ​

Constructors ​

Constructor ​

new OSMLoader(): OSMLoader

Returns ​

OSMLoader

Properties ​

id ​

readonly id: "builtin-loader-osm" = 'builtin-loader-osm'

Defined in: packages/piero/src/modules/loaders/OSMLoader.ts:27

The unique id of the module, that also acts as a key to find the module configuration in the app configuration.

Implementation of ​

Module.id


name ​

readonly name: "OSM basemap" = 'OSM basemap'

Defined in: packages/piero/src/modules/loaders/OSMLoader.ts:28

The readable name of the module.

Implementation of ​

Module.name

Methods ​

initialize() ​

initialize(context): void | Promise<void>

Defined in: packages/piero/src/modules/loaders/OSMLoader.ts:30

Initialize this module on the Piero context.

Parameters ​

context ​

PieroContext

Returns ​

void | Promise<void>

Implementation of ​

Module.initialize