/// <summary> /// Fires the EnvelopeChanged event. /// </summary> /// <param name="sender">The object sender for this event (this)</param> /// <param name="e">The EnvelopeArgs specifying the envelope</param> protected virtual void OnEnvelopeChanged(object sender, EnvelopeArgs e) { if (EnvelopeChanged != null) { EnvelopeChanged(sender, e); } }
/// <summary> /// Fires the ZoomToLayer method when one of the layers fires its ZoomTo event /// </summary> /// <param name="sender">The layer to zoom to</param> /// <param name="e">The extent of the layer</param> protected virtual void OnZoomToLayer(object sender, EnvelopeArgs e) { // Just forward the event if (ZoomToLayer != null) { ZoomToLayer(sender, e); } }
private void LayersZoomToLayer(object sender, EnvelopeArgs e) { OnZoomToLayer(e.Envelope); }
private void Layer_ZoomToLayer(object sender, EnvelopeArgs e) { OnZoomToLayer(sender, e); }
/// <summary> /// This adjusts the extents when ZoomToLayer is called in one of the internal layers. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected virtual void Layers_ZoomToLayer(object sender, EnvelopeArgs e) { ViewExtents = e.Envelope.ToExtent(); }
private void Layers_ZoomToLayer(object sender, EnvelopeArgs e) { OnZoomToLayer(e.Envelope); }
/// <summary> /// Fires the ZoomToLayer method when one of the layers fires its ZoomTo event. /// </summary> /// <param name="sender">The layer to zoom to.</param> /// <param name="e">The extent of the layer.</param> protected virtual void OnZoomToLayer(object sender, EnvelopeArgs e) { // Just forward the event ZoomToLayer?.Invoke(sender, e); }
/// <summary> /// Fires the EnvelopeChanged event. /// </summary> /// <param name="sender">The object sender for this event (this).</param> /// <param name="e">The EnvelopeArgs specifying the envelope.</param> protected virtual void OnEnvelopeChanged(object sender, EnvelopeArgs e) { EnvelopeChanged?.Invoke(sender, e); }
/// <summary> /// Modifies the ZoomToLayer behavior to account for the possibility of an expanded /// MapFrame. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected override void Layers_ZoomToLayer(object sender, EnvelopeArgs e) { ZoomToLayerEnvelope(e.Envelope); }