-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGMapControlWrapper.cs
More file actions
73 lines (58 loc) · 1.71 KB
/
GMapControlWrapper.cs
File metadata and controls
73 lines (58 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
using GMap.NET;
using GMap.NET.MapProviders;
using GMap.NET.WindowsPresentation;
using System.Collections.ObjectModel;
using System.Windows.Input;
namespace RouteEditorCS
{
public class GMapControlWrapper : IGMapControl
{
private readonly GMapControl _control;
public GMapControlWrapper (GMapControl control)
{
_control = control;
}
public double Zoom
{
get => _control.Zoom;
set => _control.Zoom = value;
}
public bool ShowCenter
{
get => _control.ShowCenter;
set => _control.ShowCenter = value;
}
public bool CanDragMap
{
get => _control.CanDragMap;
set => _control.CanDragMap = value;
}
public MouseButton DragButton
{
get => _control.DragButton;
set => _control.DragButton = value;
}
public PointLatLng Position
{
get => _control.Position;
set => _control.Position = value;
}
public GMapProvider MapProvider
{
get => _control.MapProvider;
set => _control.MapProvider = value;
}
public ObservableCollection<GMapMarker> Markers => _control.Markers;
PureImageCache IGMapControl.PrimaryCache
{
get => _control.Manager.PrimaryCache;
set => _control.Manager.PrimaryCache = value;
}
AccessMode IGMapControl.CacheMode
{
get => _control.Manager.Mode;
set => _control.Manager.Mode = value;
}
public PointLatLng FromLocalToLatLng (int x, int y) => _control.FromLocalToLatLng(x, y);
}
}