internal SphericalMercatorTileSchema(IEnumerable <ZoomLevel> zoomLevels, TileFormat format)
 {
     TileFormat      = format;
     Crs             = "EPSG:3857";
     IsYAxisReversed = true;
     foreach (var zoomLevel in zoomLevels)
     {
         ZoomLevels.Add(zoomLevel);
     }
     BoundingBox = new BoundingBox(-20037508.342789, -20037508.342789, 20037508.342789, 20037508.342789);
 }
        private void InitializeZoomLevels()
        {
            ZoomLevels.Clear();

            Collection <ZoomLevel> zoomlevels = GetZoomLevels(NumberOfZoomLevels);

            foreach (var zoomLevel in zoomlevels)
            {
                ZoomLevels.Add(zoomLevel);
            }
        }
Пример #3
0
        private void InitializeZoomLevels()
        {
            ZoomLevels.Clear();

            double resolution = MaxResolution;

            for (int i = 0; i < numberOfZoomLevels; i++)
            {
                var ZoomLevel = new ZoomLevel(resolution, (i + 1).ToString(CultureInfo.InvariantCulture));
                ZoomLevels.Add(ZoomLevel);

                resolution /= 2;
            }
        }
        public Fullscreen()
        {
            InitializeComponent();
            DataContext = this;

            ZoomLevels.Add("25%");
            ZoomLevels.Add("30%");
            ZoomLevels.Add("40%");
            ZoomLevels.Add("50%");
            ZoomLevels.Add("75%");
            ZoomLevels.Add("100%");
            ZoomLevels.Add("125%");
            ZoomLevels.Add("150%");
            ZoomLevels.Add("200%");
            ZoomLevels.Add("250%");
            ZoomLevels.Add("300%");

            fPreviousExecutionState = NativeMethods.SetThreadExecutionState(NativeMethods.ES_CONTINUOUS | NativeMethods.ES_SYSTEM_REQUIRED);
        }