Examples Guide
flywave.gl provides a rich set of examples to help developers quickly get started and understand various features. All examples are located in the @flywave/flywave-examples directory.
Example Categories
Getting Started
- Basic Configuration Example: Shows how to configure basic map views
- Camera Animation Example: Demonstrates camera animations and transition effects
- Planar Map Example: Planar map using Mercator projection
Terrain and Elevation
- DEM Terrain Example: Shows the use of digital elevation models
- Quantized Terrain Example: Demonstrates quantized processing of terrain data
- Terrain Elevation Modification Example: Shows how to modify terrain elevation
3D Tiles and Model Rendering
- 3D Tiles Animation Example: Demonstrates animation effects of 3D Tiles
- Gaussian Point Rendering Example: Shows rendering of Gaussian point models
- Terrain Overlay Example: Demonstrates 3D Tiles overlay on terrain
Camera and Interaction Controls
- Camera Animation Example: Shows camera path animations
- Interaction Control Example: Demonstrates map interaction features
Drawing and Annotation
- Drawing Tools Example: Shows various drawing tools and annotations
- Marker Placement Example: Demonstrates placing markers on the map
- Polygon Drawing Example: Shows polygon drawing capabilities
Data Visualization
- Heatmap Example: Demonstrates heatmap visualization
- Cluster Markers Example: Shows marker clustering for large datasets
- Real-time Data Example: Demonstrates real-time data visualization
Running Examples
To run the examples locally:
-
Clone the repository:
git clone https://github.com/flywave/flywave.gl.git -
Navigate to the examples directory:
cd flywave.gl/@flywave/flywave-examples -
Install dependencies:
pnpm install -
Start the development server:
pnpm start -
Open your browser and visit
http://localhost:8080to view the examples.
Online Examples
You can also view our online examples at flywave.github.io/flywave.gl/examples.
Contributing Examples
We welcome contributions of new examples! To contribute:
- Fork the repository
- Create a new example in the appropriate category
- Follow our coding standards and documentation guidelines
- Submit a pull request with your example
For detailed contribution guidelines, please see our development guide.