${WP_mapping_CloudLayer_Title}

${WP_mapping_CloudLayer_Description}

Inheritance: TiledCachedLayer
        // Constructor
        public MainPage()
        {
            InitializeComponent();
            MyMap.ViewBounds = new Rectangle2D(11285095.6059184, 2296202.73281782, 13634177.6371684, 5702371.67813032);
            _layer = MyMap.Layers["CLayer"] as CloudLayer;
            _layer.LocalStorage = new OfflineStorage("CloudMap");
            _layer.Progress += _layer_Progress;
            _fLayer = MyMap.Layers["FLayer"] as FeaturesLayer;
            _eLayer = MyMap.Layers["ELayer"] as ElementsLayer;
            _pushpinLayer = MyMap.Layers["PushpinLayer"] as ElementsLayer;
            _queue = new Queue<Point2D>();

            Random randomX = new Random(1);
            Random ramdomY = new Random(2);
            double baseX = 101.95;
            double baseY = 29.3;
            for (int i = 0; i < 10; i++)
            {
                double x = baseX + randomX.NextDouble() * 2;
                double y = baseY + ramdomY.NextDouble() * 2;
                _queue.Enqueue(MercatorUtility.LatLonToMeters(new Point2D(x, y)));
            }

            MyMap.Tap += MyMap_Tap;
            MyMap.DoubleTap += MyMap_DoubleTap;
            MyMap.Hold += MyMap_Hold;
        }
 // Constructor
 public MainPage()
 {
     InitializeComponent();
     _fLayer = MyMap.Layers["FLayer"] as FeaturesLayer;
     _eLayer = MyMap.Layers["ELayer"] as ElementsLayer;
     _layer = MyMap.Layers["CLayer"] as CloudLayer;
     _layer.LocalStorage = new OfflineStorage("CloudMap");
     MyMap.ViewBoundsChanged += MyMap_ViewBoundsChanged;
     _watcher = new GeoCoordinateWatcher(GeoPositionAccuracy.High);
     _watcher.MovementThreshold = 20;
     _watcher.PositionChanged += _watcher_PositionChanged;
     _watcher.StatusChanged += _watcher_StatusChanged;
     _compass = Compass.GetDefault();
     if (_compass != null)
     {
         _compass.ReadingChanged += _compass_ReadingChanged;
         _compass.ReportInterval = 100;
     }
     MyMap.Tap += MyMap_Tap;
     MyMap.DoubleTap += MyMap_DoubleTap;
     MyMap.Hold += MyMap_Hold;
 }
 // 构造函数
 public MainPage()
 {
     InitializeComponent();
     _layer = MyMap.Layers["Layer"] as CloudLayer;
     _layer.LocalStorage = new OfflineKitaroDB("CloudMap");
 }