Open Pioneer Trails Packages
    Preparing search index...

    Function useMapModel

    • React hook that returns the default map model (if available, see DefaultMapProvider).

      Returns UseMapModelResult

      Use useMapModelValue instead.

    • React hook that looks up the map with the given id in the map.MapRegistry service.

      Returns an object representing the progress, which will eventually represent either the map model value or an initialization error.

      The map model cannot be returned directly because it may not have completed its initialization yet.

      Parameters

      • mapId: string

      Returns UseMapModelResult

    • React hook that resolves a map model specified by the given props.

      Returns an object representing the progress, which will eventually represent either the map model value or an initialization error.

      The map model cannot be returned directly because it may not have completed its initialization yet.

      Parameters

      • props: { mapId: string }

      Returns UseMapModelResult