<esri:SimpleRenderer x:Key="MySimpleRenderer4"> <esri:SimpleRenderer.Symbol> <esri:FillSymbol Fill="Yellow" BorderBrush="Black" BorderThickness="6" ></esri:FillSymbol> </esri:SimpleRenderer.Symbol> </esri:SimpleRenderer>
<esri:SimpleRenderer x:Key="MySimpleRenderer4"> <esri:SimpleRenderer.Symbol> <esri:SimpleFillSymbol Fill="Yellow" BorderBrush="Black" BorderThickness="6" ></esri:SimpleFillSymbol> </esri:SimpleRenderer.Symbol> </esri:SimpleRenderer>
//POLY WORKS System.Windows.Media.SolidColorBrush orangecolor = new SolidColorBrush(Colors.Orange); SimpleFillSymbol sampleFillSymbolorange = new SimpleFillSymbol() { Fill = orangecolor, BorderBrush = orangecolor, BorderThickness = 3, }; GraphicsLayer graphicslayerPoly = new GraphicsLayer() { ID = "PolygonWorks", Opacity = .5 }; ESRI.ArcGIS.Client.Geometry.PointCollection circlePts = new ESRI.ArcGIS.Client.Geometry.PointCollection(); circlePts.Add(new MapPoint() { X = -60, Y = -30 }); circlePts.Add(new MapPoint() { X = -30, Y = 00 }); circlePts.Add(new MapPoint() { X = 00, Y = 00 }); circlePts.Add(new MapPoint() { X = 00, Y = -30 }); circlePts.Add(new MapPoint() { X = -30, Y = -60 }); ESRI.ArcGIS.Client.Geometry.Polygon isolationZonePts = new ESRI.ArcGIS.Client.Geometry.Polygon(); isolationZonePts.Rings.Add(circlePts); isolationZonePts.SpatialReference = new SpatialReference() { WKID = 4326 }; //ENVELOPE DOESN'T graphicslayerPoly.Graphics.Add(new Graphic() { Geometry = isolationZonePts, Symbol = sampleFillSymbolorange }); System.Windows.Media.SolidColorBrush purplecolor = new SolidColorBrush(Colors.Purple); SimpleFillSymbol sampleFillSymbol = new SimpleFillSymbol() { Fill = purplecolor, BorderBrush = purplecolor, BorderThickness = 20 }; GraphicsLayer graphicslayerEnvelope = new GraphicsLayer() { ID = "EnvelopeFails", Opacity = .5 }; Envelope envelope = new Envelope(30, 30, 0, 0); MyMap.Layers.Add(graphicslayerPoly); MyMap.Layers.Add(graphicslayerEnvelope);
<esri:GeoRssLayer ID="MyGeoRssLayerPolyBronx" Source="http://rss.nyalert.gov/GeoAtom/Feeds/BronxGEOATOM.xml" Renderer="{StaticResource MySimpleRenderer4}" > </esri:GeoRssLayer>
<esri:GeoRssLayer ID="MyGeoRssLayerBox" Source="http://myurl:8888/feed?q=aapg AND type:layer" Renderer="{StaticResource MySimpleRenderer4}" > </esri:GeoRssLayer>
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.