Select to view content in your preferred language

Marker symbol appearing as pattern for polygon features in Scene.

731
2
07-13-2023 03:42 AM
Labels (3)
Sukhesh_Krishna
Emerging Contributor

Hi,

We have created a polygon symbol with 2 layers, one for the outline of feature and another picture marker symbol appearing at the center of the feature. In Map it's displaying as expected, but when we see it in scene, the picture marker symbol supposed to be at center of feature appears as pattern inside the polygon.

I have attached the images for reference. Please let me know if there's any solution for this.

 

Thank you,

Sukhesh Krishna

0 Kudos
2 Replies
williambohrmann3
Esri Contributor

Thank you @Sukhesh_Krishna for your post. Are you able to share code which you used to create your symbolized polygon? This would better help me triage your problem.

0 Kudos
williambohrmann3
Esri Contributor

When I tap a SceneView or MapView, my polgyon fills entirely with my picture.

private void GeoView_GeoViewTapped(object sender, Esri.ArcGISRuntime.UI.Controls.GeoViewInputEventArgs e)
        {
            var offset = MyGeoView is MapView ? 500 : 0.01;
            List<MapPoint> points = new List<MapPoint>() 
            { 
                new MapPoint(e.Location.X, e.Location.Y, e.Location.Z),
                new MapPoint(e.Location.X, e.Location.Y + offset, e.Location.Z),
                new MapPoint(e.Location.X + offset, e.Location.Y + offset, e.Location.Z),
                new MapPoint(e.Location.X + offset, e.Location.Y, e.Location.Z)
            };

            Geometry geometry = new Polygon(points);

            var polygonSymbol = new SolidStrokeSymbolLayer(2, Color.Blue);
            var picMarkerSymbol = new PictureMarkerSymbolLayer(new Uri("image"));

            var multilayerPolygonSymbol = new MultilayerPolygonSymbol(new SymbolLayer[] { polygonSymbol, picMarkerSymbol });

            Graphic graphic1 = new Graphic(geometry, multilayerPolygonSymbol);
            _overlay = new GraphicsOverlay();
            _overlay.Graphics.Add(graphic1);
            MyGeoView.GraphicsOverlays?.Add(_overlay);
        }

 

0 Kudos