step 5: add stable pan zoom and view commands

This commit is contained in:
2026-05-23 10:19:13 +02:00
parent 563ddd962b
commit 2d6242bd3f
9 changed files with 362 additions and 18 deletions

View File

@@ -2,7 +2,7 @@
`dpg-map` is a Dear PyGui map widget package under rebuild.
The Step 4 tile manager is in place:
The Step 5 interaction layer is in place:
```python
import dpg_map as dpgm
@@ -32,12 +32,13 @@ Implemented so far:
- Dear PyGui `child_window` + measured-size `drawlist` widget shell
- GUI-thread frame pump that drains commands, manages textures, and draws raster tiles
- sizing helpers that preserve the last non-zero size across hidden layouts
- interaction hit-rectangle calculation for the measured map area
- asynchronous tile workers that read disk cache, fetch HTTP, and decode images
- memory cache with visible-tile protection and GUI-thread texture deletion
- measured-rectangle mouse interaction for left-drag panning and wheel zooming
- programmatic view commands and screen/latitude-longitude conversion helpers
Overlay drawing is not implemented yet. Step 5 will add pan/zoom interaction and
view command projection.
Overlay drawing is not implemented yet. Step 6 will add overlay rendering and
live update stress examples.
Examples: