I have a georeferenced .tif file that I would like to overlay on my map. I was thinking that I would use the PictureFillSymbol for this, but it doesn't seem to work for .tif files. I could overlay .png files however. Has anyone gotten a .tif file to overlay? Is there possibly a better way to do this? We have thousands of images, so adding them to a map service is what I don't want to do.Thanks.
private void AddPicToMap() { if (!ELayer.Children.Contains(_image)) { ElementLayer.SetEnvelope(_image, CurrentZCBJ.ImageSpatialExtent); //ElementLayer.SetEnvelope(_image, MapObj.Extent); ELayer.Children.Add(_image); MapObj.ZoomTo((_image.GetValue(ElementLayer.EnvelopeProperty) as Envelope).Expand(1.5)); OverlayHideText = "HidePicture"; } else { ELayer.Children.Remove(_image); OverlayHideText = "OverlayPicture"; } }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.