mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-04 14:08:32 +00:00
Add measurement line to sample apps
This commit is contained in:
parent
365fdb75dc
commit
e1c6bfdf9c
6 changed files with 242 additions and 72 deletions
|
|
@ -100,12 +100,18 @@
|
|||
|
||||
<map:Map x:Name="map" ManipulationMode="All"
|
||||
MinZoomLevel="2" MaxZoomLevel="21" ZoomLevel="11"
|
||||
PointerPressed="MapPointerPressed"
|
||||
PointerReleased="MapPointerReleased"
|
||||
PointerMoved="MapPointerMoved"
|
||||
PointerExited="MapPointerExited">
|
||||
<map:Map.Center>
|
||||
<map:Location Latitude="53.5" Longitude="8.2"/>
|
||||
</map:Map.Center>
|
||||
|
||||
<map:MapPolyline x:Name="measurementLine" Visibility="Collapsed"
|
||||
Stroke="{Binding Foreground, ElementName=map}"
|
||||
StrokeThickness="2" StrokeDashArray="1,1"/>
|
||||
|
||||
<map:MapItemsControl ItemsSource="{Binding Polylines}"
|
||||
ItemTemplate="{StaticResource PolylineItemTemplate}"/>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue