Liking cljdoc? Tell your friends :D

cartoj.controls

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}]
raw docstring

attribution-controlcljs

(attribution-control & args)

Map attribution control. Key props: :position, :compact, :custom-attribution.

Map attribution control.
Key props: :position, :compact, :custom-attribution.
sourceraw docstring

fullscreen-controlcljs

(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).
sourceraw docstring

geolocate-controlcljs

(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.
sourceraw docstring

(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.
sourceraw docstring

scale-controlcljs

(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").
sourceraw docstring

terrain-controlcljs

(terrain-control & args)

Terrain toggle control. Key props: :position, :source, :exaggeration.

Terrain toggle control.
Key props: :position, :source, :exaggeration.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close