Reagent wrappers around react-map-gl control components.
All controls accept kebab-case keyword props and an optional :position key (one of "top-left", "top-right", "bottom-left", "bottom-right").
Usage: [controls/navigation-control {:position "top-right"}] [controls/geolocate-control {:position "bottom-right" :track-user-location true}] [controls/fullscreen-control {:position "top-left"}] [controls/scale-control {:max-width 100 :unit "metric"}] [controls/attribution-control {:compact true}]
Reagent wrappers around react-map-gl control components.
All controls accept kebab-case keyword props and an optional :position key
(one of "top-left", "top-right", "bottom-left", "bottom-right").
Usage:
[controls/navigation-control {:position "top-right"}]
[controls/geolocate-control {:position "bottom-right" :track-user-location true}]
[controls/fullscreen-control {:position "top-left"}]
[controls/scale-control {:max-width 100 :unit "metric"}]
[controls/attribution-control {:compact true}](attribution-control & args)Map attribution control. Key props: :position, :compact, :custom-attribution.
Map attribution control. Key props: :position, :compact, :custom-attribution.
(fullscreen-control & args)Fullscreen toggle control. Key props: :position, :container (DOM element to go fullscreen).
Fullscreen toggle control. Key props: :position, :container (DOM element to go fullscreen).
(geolocate-control & args)Geolocation control. Key props: :position, :track-user-location, :show-user-heading, :show-accuracy-circle, :show-user-location.
Geolocation control.
Key props: :position, :track-user-location, :show-user-heading,
:show-accuracy-circle, :show-user-location.(navigation-control & args)Zoom in/out + compass bearing reset control. Key props: :position, :show-compass, :show-zoom, :visualize-pitch.
Zoom in/out + compass bearing reset control. Key props: :position, :show-compass, :show-zoom, :visualize-pitch.
(scale-control & args)Distance scale bar control. Key props: :position, :max-width (px), :unit ("metric" | "imperial" | "nautical").
Distance scale bar control.
Key props: :position, :max-width (px), :unit ("metric" | "imperial" | "nautical").(terrain-control & args)Terrain toggle control. Key props: :position, :source, :exaggeration.
Terrain toggle control. Key props: :position, :source, :exaggeration.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |