Help with render the terrain with a BufferGeometry instead of PlaneGeometry, in Freeciv-web

Hello! I need help with this please Freeciv-web improvement, how to I render the terrain with a BufferGeometry instead of PlaneGeometry, and be able to update it at run-time.