Exemplo n.º 1
0
        /// <summary>
        /// Updates the extents of the map element taking into account its size of screen and scale.
        /// </summary>
        private void UpdateMapElement(LayoutControl layoutControl, IEnvelope extents)
        {
            var map = layoutControl.GetMainMap();

            if (map != null)
            {
                map.Envelope    = extents;
                map.Initialized = true;

                layoutControl.ClearSelection();
                layoutControl.AddToSelection(map);
            }
        }