Create a ProfileController.
import { createProfileController } from '@bitruvius/sdk-maplibre';const profile = createProfileController({ map, onRun: (run) => { if (run) console.log(run.stats.lengthM, run.stats.gainM, run.provisional); },});profile.start(); Copy
import { createProfileController } from '@bitruvius/sdk-maplibre';const profile = createProfileController({ map, onRun: (run) => { if (run) console.log(run.stats.lengthM, run.stats.gainM, run.provisional); },});profile.start();
Create a ProfileController.