< Summary

Information
Class: OffRouteMap.GMapControlWrapper
Assembly: OffRouteMap
File(s): D:\a\OffRouteMap\OffRouteMap\GMapControlWrapper.cs
Tag: 5_18712131505
Line coverage
0%
Covered lines: 0
Uncovered lines: 21
Coverable lines: 21
Total lines: 73
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

File(s)

D:\a\OffRouteMap\OffRouteMap\GMapControlWrapper.cs

#LineLine coverage
 1using GMap.NET;
 2using GMap.NET.MapProviders;
 3using GMap.NET.WindowsPresentation;
 4using System.Collections.ObjectModel;
 5using System.Windows.Input;
 6namespace OffRouteMap
 7{
 8
 9    public class GMapControlWrapper : IGMapControl
 10    {
 11        private readonly GMapControl _control;
 12
 013        public GMapControlWrapper (GMapControl control)
 14        {
 015            _control = control;
 016        }
 17
 18        public double Zoom
 19        {
 020            get => _control.Zoom;
 021            set => _control.Zoom = value;
 22        }
 23
 24        public bool ShowCenter
 25        {
 026            get => _control.ShowCenter;
 027            set => _control.ShowCenter = value;
 28        }
 29
 30        public bool CanDragMap
 31        {
 032            get => _control.CanDragMap;
 033            set => _control.CanDragMap = value;
 34        }
 35
 36        public MouseButton DragButton
 37        {
 038            get => _control.DragButton;
 039            set => _control.DragButton = value;
 40        }
 41
 42        public PointLatLng Position
 43        {
 044            get => _control.Position;
 045            set => _control.Position = value;
 46        }
 47
 48        public GMapProvider MapProvider
 49        {
 050            get => _control.MapProvider;
 051            set => _control.MapProvider = value;
 52        }
 53
 054        public ObservableCollection<GMapMarker> Markers => _control.Markers;
 55
 56
 57        PureImageCache IGMapControl.PrimaryCache
 58        {
 059            get => _control.Manager.PrimaryCache;
 060            set => _control.Manager.PrimaryCache = value;
 61        }
 62
 63        AccessMode IGMapControl.CacheMode
 64        {
 065            get => _control.Manager.Mode;
 066            set => _control.Manager.Mode = value;
 67        }
 68
 069        public PointLatLng FromLocalToLatLng (int x, int y) => _control.FromLocalToLatLng(x, y);
 70
 71    }
 72
 73}