Generate Delaunay based on elevations of real world.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Resource
baidu
cn
css
lib
CHANGELOG.md
LICENSE
README.md
index.html

README.md

DeMap

Version Author License
Safari Support Chrome Support FireFox Support Edge Support IE Support

Generate Delaunay based on elevations of real world
Demo

Functions

  1. Generate random points in a selected area
  2. Generate delaunay with the points
  3. Fill the delaunay with gradient colors based on elevations
  4. Generate SVG
  5. A special version for China mainland
  6. A special version using Baidu Maps API

Algorithm

The core algorithm of generating delaunay is modified from zhiyishou's work which is based on Bowyer–Watson algorithm.

Requirement

Changelog

See CHANGELOG.md.

TO-DO

  • Optimize the algorithm of generating random points
  • Edit the points manually
  • Generate PNG
  • Clean the code of delaunay algorithm
  • Setting the width and height

License

The source code are licensed under MIT.

Please notice that the Google API Key and Baidu API Key included in the source code is owned by Lucka and ONLY for public useage in the demo pages.