Home > Overlay Components > Geojson

Geojson

wq’s <Geojson/> [overlay component][overlay] loads the GeoJSON from the specified url or data prop and renders it with the corresponding map engine.

Source

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

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