Designing a WPF map control.
Posted
by Dylan
on Stack Overflow
See other posts from Stack Overflow
or by Dylan
Published on 2008-09-17T19:16:29Z
Indexed on
2010/04/23
21:23 UTC
Read the original article
Hit count: 328
I'm thinking about making a simple map control in WPF, and am thinking about the design of the basic map interface and am wondering if anyone has some good advice for this.
What I'm thinking of is using a ScrollViewer (sans scroll bars) as my "view port" and then stacking everything up on top of a canvas. From Z-Index=0 up, I'm thinking:
- Base canvas for lat/long calculations, control positioning, Z-Index stacking.
- Multiple Grid elements to represent the maps at different zoom levels. Using a grid to make tiling easier.
- Map objects with positional data.
- Map controls (zoom slider, overview, etc).
- Scroll viewer with mouse move events for panning and zooming.
Any comments suggestions on how I should be building this?
© Stack Overflow or respective owner