C # for the two development of MAPX Control basic operation

Source: Internet
Author: User
Tags polyline

The part of the article introduces the basic use code of MAPX, this article continues to explore some of the basics of controls, including zooming in, zooming out, scaling to initial size (full picture), panning, rectangular selection, circle selection, arrows, opening layer dialogs, opening ActiveX Properties dialog boxes, adding symbols, and more.

The standard tools provided by MAPX, different tools will enable the mouse to complete a variety of tasks. For example, if the current tool is set to Milabeltool, a label is placed on the specified Map object when the mouse is clicked. The mouse cursor changes the shape according to the tool you are using. The list of standard tools available for MapX is as follows:

Tools Constant Describe
ADD Line Miaddlinetool Add a line entity to the insert Layer
ADD Point Miaddpointtool Click to add point entities to the insert layer.
ADD polyline Miaddpolylinetool Add a polyline entity to the insert layer.
ADD Region Miaddregiontool Add a zone entity to the insert layer.
Arrow Miarrowtool Click the title or note. Also, it can move a selected entity or change its size in an editable layer.
Center Micentertool Click the mouse to center the map.
Label Milabeltool Click the entity to annotate.
Pan Mipantool Drag the map and reposition the center of the map.
Polygon Select Mipolygonselecttool Click the mouse to draw a polygon, and the object within the polygon is selected.
Radius Select Miradiusselecttool Drag the mouse and select the entity within the drag radius.
Rect Select Mirectselecttool Drag to select an entity within the rectangle.
Select Tool Miselecttool Click to select an entity.
Symbol Misymboltool Place symbol annotations.
Text Mitexttool Place text annotations.
Zoom in Mizoomintool Amplification.
Zoom out Mizoomouttool Narrow.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.