Exemplo n.º 1
0
		//[CompilerGenerated]
		//private static Predicate<ImageCodecInfo> <>9__CachedAnonymousMethodDelegate1;
		
        public CompositeTileUnit(Layer layer, TileAddress address, RenderOutputMethod renderOutput, string outputFilename, OutputTileType outputTileType)
		{
			this.layer = layer;
			this.address = address;
			this.renderOutput = renderOutput;
			this.outputFilename = outputFilename;
			this.outputTileType = outputTileType;
		}
Exemplo n.º 2
0
 public UndoAddSourceMap(string filename, SourceMap newSourceMap, Layer addedToLayer, LayerControls layerControls, MainAppForm mainAppForm)
 {
     this.filename = filename;
     this.newSourceMap = newSourceMap;
     this.addedToLayer = addedToLayer;
     this.layerControls = layerControls;
     this.mainAppForm = mainAppForm;
 }
		public SourceMapLegendFrame(Layer layer, SourceMap sourceMap, List<LegendRecord> legendRecords, SourceMapLegendFrame.ThumbnailDelegate thumbnailDelegate)
		{
			this.filename = RenderState.ForceValidFilename(string.Format("SourceMap_{0}_{1}.html", layer.displayName, sourceMap.displayName));
			this.displayName = sourceMap.displayName;
			this.sourceMapInfo = sourceMap.sourceMapInfo;
			this.legendRecords = legendRecords;
			this.thumbnailDelegate = thumbnailDelegate;
		}
Exemplo n.º 4
0
		public void AddAfter(Layer newLayer, Layer refLayer)
		{
			int num = this.layers.FindIndex((Layer l) => l == refLayer);
			if (num < 0)
			{
				throw new IndexOutOfRangeException();
			}
			this.layers.Insert(num + 1, newLayer);
		}
		internal OneLayerBoundApplier(IRenderableSource source, Layer layer, CachePackage cachePackage)
		{
			this.source = source;
			this.layer = layer;
			this.clippedImageFuture = new MemCachePrototype(cachePackage.computeCache, new ApplyPrototype(new UserClipperVerb(), new IFuturePrototype[]
			{
				source.GetImagePrototype(null, (FutureFeatures)11),
				new UnevaluatedTerm(TermName.TileAddress),
				source.GetUserBounds(null, FutureFeatures.Cached)
			}));
		}
Exemplo n.º 6
0
		public CrunchedLayer(RenderOptions renderOptions, Layer layer, List<RangeDescriptor> rangeDescriptors, MapTileSourceFactory mapTileSourceFactory)
		{
			this.displayName = layer.GetDisplayName();
			this.namingScheme = new VENamingScheme(layer.GetFilesystemName(), renderOptions.GetOutputTileSuffix());
			this.rangeDescriptors = rangeDescriptors;
			bool flag;
			this.defaultView = this.GetDefaultView(layer, new Size(600, 600), mapTileSourceFactory, out flag);
			foreach (SourceMap current in layer)
			{
				this.sourceMapRecords.Add(new SourceMapRecord(layer, current, mapTileSourceFactory));
			}
		}
Exemplo n.º 7
0
		public CrunchedLayer this[Layer layer]
		{
			get
			{
				int num = this.crunchedLayers.FindIndex((CrunchedLayer cl) => cl.displayName == layer.displayName);
				if (num == -1)
				{
					throw new IndexOutOfRangeException();
				}
				return this.crunchedLayers[num];
			}
		}
Exemplo n.º 8
0
		public LayerView(Layer layer, MashupParseContext context)
		{
			this._layer = layer;
			bool flag = false;
			XMLTagReader xMLTagReader = context.NewTagReader(LayerView.GetXMLTag());
			while (xMLTagReader.FindNextStartTag())
			{
				if (xMLTagReader.TagIs(MapPosition.GetXMLTag(context.version)))
				{
					this.lockedView = new MapPosition(context, null, MercatorCoordinateSystem.theInstance);
					flag = true;
				}
			}
			if (!flag)
			{
				throw new InvalidMashupFile(context, "No LatLonZoom tag in LayerView.");
			}
		}
Exemplo n.º 9
0
        //[CompilerGenerated]
        //private static Comparison<ThumbnailRecord> <>9__CachedAnonymousMethodDelegate1;
		
        public SourceMapRecord(Layer layer, SourceMap sourceMap, MapTileSourceFactory mapTileSourceFactory)
		{
			this.displayName = sourceMap.displayName;
			this.sourceMapInfo = sourceMap.sourceMapInfo;
			this.userBoundingRect = sourceMap.GetUserBoundingBox(mapTileSourceFactory);
			this.maxZoom = sourceMap.sourceMapRenderOptions.maxZoom;
			try
			{
				this.imageTransformer = sourceMap.registration.warpStyle.getImageTransformer(sourceMap.registration, InterpolationMode.Invalid);
			}
			catch (Exception)
			{
			}
			foreach (Legend current in sourceMap.legendList)
			{
				this.legendRecords.Add(new LegendRecord("legends", sourceMap.GetLegendFilename(current), current.displayName, current.GetOutputSizeSynchronously(mapTileSourceFactory.CreateDisplayableUnwarpedSource(sourceMap).GetUserBounds(current.latentRegionHolder, FutureFeatures.Cached))));
			}
			this.sourceMapLegendFrame = new SourceMapLegendFrame(layer, sourceMap, this.legendRecords, new SourceMapLegendFrame.ThumbnailDelegate(this.thumbnailForLegendFrame));
		}
Exemplo n.º 10
0
		public void Remove(Layer layer)
		{
			this.layers.Remove(layer);
			this.dirtyEvent.SetDirty();
		}
Exemplo n.º 11
0
		public void Add(Layer layer)
		{
			this.layers.Add(layer);
			this.dirtyEvent.SetDirty();
		}
Exemplo n.º 12
0
 public void OpenLayer(Layer layer)
 {
     this.OpenView(new DynamicallyCompositingLayerViewManager(layer, this.mapTileSourceFactory, this));
     this.currentMashup.SetLastView(layer.lastView);
 }
Exemplo n.º 13
0
		public LayerView(Layer layer, MapPosition lockedView)
		{
			this._layer = layer;
			this.lockedView = lockedView;
		}
		public DynamicallyCompositingLayerViewManager(Layer layer, MapTileSourceFactory mapTileSourceFactory, ViewControlIfc viewControl)
		{
			this.layer = layer;
			this.mapTileSourceFactory = mapTileSourceFactory;
			this.viewControl = viewControl;
		}
Exemplo n.º 15
0
		internal LatLonZoom GetDefaultView(Layer layer, Size assumedDisplaySize, MapTileSourceFactory mapTileSourceFactory, out bool allBoundsValid)
		{
			MapRectangle mapRectangle = null;
			allBoundsValid = true;
			foreach (SourceMap current in layer)
			{
				if (!this.AccumulateBoundingBox(current, mapTileSourceFactory, ref mapRectangle))
				{
					allBoundsValid = false;
				}
			}
			LatLonZoom bestViewContaining;
			if (mapRectangle == null)
			{
				bestViewContaining = MercatorCoordinateSystem.theInstance.GetDefaultView();
			}
			else
			{
				bestViewContaining = MercatorCoordinateSystem.theInstance.GetBestViewContaining(mapRectangle, assumedDisplaySize);
			}
			return CoordinateSystemUtilities.ConstrainLLZ(MercatorCoordinateSystem.theInstance, bestViewContaining);
		}
Exemplo n.º 16
0
		public void CancelSourceMap(Layer layer, SourceMap sourceMap)
		{
			LayerControls.ReloadDelegate method = new LayerControls.ReloadDelegate(this.Reload);
			base.Invoke(method);
		}