react-map-gl/docs/overlays/html-overlay.md
2017-06-15 18:05:49 -07:00

525 B

HTML Overlay

Allows applications to overlay data on top of maps using a HTML container.

Properties

redraw {Function}

Called every time the map updates.

Parameters:

  • width {Number} - width of the viewport
  • height {Number} - height of the viewport
  • project {Function} - get screen position [x, y] from geo coordinates [lng, lat]
  • unproject {Function} - get geo coordinates [lng, lat] from screen position [x, y]

style {Object, optional}

Additional css styles of the div container.