Example Library
Welcome to the DMap3D SDK example library! Here you will find a rich collection of code examples to help you quickly get started with various features.
Example Categories
Basic Examples
Start learning DMap3D from the simplest examples:
- Hello World - Create your first 3D globe
- Add Marker - Add markers on the map
- Camera Control - Control camera viewpoint
Measurement Examples
Learn how to use measurement tools:
- Distance Measurement - Measure distance between two points
- Area Measurement - Measure polygon area
- Height Measurement - Measure point height
- Angle Measurement - Three-point angle measurement
- Slope Measurement - Two-point slope measurement
- Azimuth Measurement - Azimuth measurement
Analysis Examples
Learn how to use spatial analysis tools:
- Viewshed Analysis - Perform viewshed analysis
- Area Viewshed Analysis - Area viewshed analysis
- Contour Analysis - Generate contour lines
- Profile Analysis - Terrain profile analysis
- Skyline Analysis - Skyline contour extraction
- Buffer Analysis - Buffer zone generation
- Elevation Extremum Analysis - Find highest/lowest points
- Aspect Analysis - Terrain aspect analysis
- Slope Analysis - Terrain slope analysis
- Cut-Fill Analysis - Cut and fill volume calculation
- Flatten Analysis - 3DTiles model flattening
Drawing Examples
Learn how to use drawing tools:
- Point Drawing - Interactive point drawing
- Line Drawing - Interactive polyline drawing
- Polygon Drawing - Interactive polygon drawing
- Circle Drawing - Interactive circle drawing
How to Use Examples
Each example includes:
- Code Demo - Complete runnable code
- Preview - Actual running result
- Code Explanation - Detailed explanation of key code
- Related API - Links to the API documentation used
Online Experience
In the online editor on the main site, you can directly edit and run example code.