useRoutingProvider
The routing provider, or undefined when the host supplies none. The
Directions tool needs it, so a host without one gets no such tool. Nothing
is requested until a user action asks for a route or area.
This is a function exported by @mapcairn/map, checked against version 0.2.0.
Signature
import { useRoutingProvider } from "@mapcairn/map";
function useRoutingProvider(): RoutingProvider | undefined;
Returns
RoutingProvider | undefined