Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have created form with axMapControl and comboBox with values of possible scales (e.g. 1:1 000 000, 1: 500 000, etc).

How can I change current map scale programmaticaly by using value from selectedItem taken from Combobox?

share|improve this question
add comment

3 Answers

I had a problem in obtaining map scales and I solved it here. It can be useful for you.

share|improve this answer
add comment

Try this:

IMap _map = ArcMap.Document.FocusMap;
_map.MapScale = Your_Value;

For more information see this : IMap interface and IMap.MapScale Property

share|improve this answer
add comment

You can set IMap.MapScale to set the current map scale.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.