Jump to content
Software FX Community

Map/Chart - Zoom Issues


chu
 Share

Recommended Posts

I'm having difficulties with zooming within maps.  Currently, our application has the zoom button within the toolbar removed.  However, the user can still click and drag to select a region to zoom into (which is, what we want).  The chart zoom property is set to true.

However, I cannot seem to figure out how to cancel the zoom, or reset it, back to the original state.  Is there a method I can access to set the zoom back (as when someone presses the toolbar button to set the zoom properly?)

 Thanks for your time

 

Link to comment
Share on other sites

*Note, i've tried the following already:

map1.CancelZoom();

//chart1.AxisX.ZoomOff();

//chart1.AxisY.ZoomOff();

//chart1.Refresh();

//chart1.AxisY.ResetScale();

//chart1.AxisX.ResetScale();

//map1.Recalculate();

 

Link to comment
Share on other sites

Thanks for your response AndreG.

Just as a follow up, i've also tried the following:

this.chart1.AxisX.GetScrollView(out ViewMin, out ViewMax);

this.chart1.AxisY.GetScrollView(out ViewMin, out ViewMax);this.chart1.AxisX.Zoom(-1, -764);

this.chart1.AxisY.Zoom(0, -1);

//this.chart1.AxisX.SetScrollView(1, 764);

//this.chart1.AxisY.SetScrollView(0, 1);Thanks again for your time.
Link to comment
Share on other sites

  • 4 weeks later...
  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...