Beispiel #1
0
        public void highlightObjects(IEnumerable <DGObject> objs,
                                     string layerID, bool on = true)
        {
            if (objs == null)
            {
                return;
            }
            IGraphicsLayer gLayer = _map.Layers[layerID] as IGraphicsLayer;

            if (gLayer == null)
            {
                return;
            }
            gLayer.highlightObject(objs, on);
        }
Beispiel #2
0
        public void highlightObject(DGObject obj, bool on = true)
        {
            if (obj == null || obj.parent == null)
            {
                return;
            }
            string         layerID = obj.parent.definition.GISLayerName;
            IGraphicsLayer gLayer  = _map.Layers[layerID] as IGraphicsLayer;

            if (gLayer == null)
            {
                return;
            }
            gLayer.highlightObject(obj, on);
        }