Home > General Components > Map

Map

wq’s <Map/> component configures and renders the root component from the registered map engine. Specifically, @wq/map-gl renders one of ReactMapboxGl() (web), MapboxGl.MapView (react native), or MapView (Expo).

Source

While @wq/map defines a placeholder implementation, @wq/map-gl and @wq/leaflet’s versions are more useful as reference:

  • Map.js (@wq/map-gl)
  • Map.native.js (@wq/map-gl)
  • Map.expo.js (@wq/map-gl)
  • Map.js (@wq/leaflet)