Pitney Bowes MapXtreme User Manual

Page 455

Advertising
background image

Appendix A: How to Create and Deploy a MapXtreme Application

Building a Desktop Application

MapXtreme v7.1

462

Developer Guide

Because we have made a number of changes, the legend is now partially blocking the view of
the map. We’ll move the legend so that we can see all of the map. We could use the pan tool to
move the map, but panning would not be a permanent change to the application. The new map
position would be in effect only for as long as the application is running. Instead, we’ll change the
position of the legend programmatically.

13. Make sure the code page is displayed and make the following change to the legend location:

On line 258, replace “mapControl1.Size.Width - legend.Size.Width” with “0”
This changes the X coordinate of the legend location to be at the left side of the frame. We
are leaving the Y coordinate as it is.

14. The image below highlights the code changes with a red box.

Advertising