ArcGIS for flex pop-up window Positioning

Source: Internet
Author: User

MAP is used to load various layers. It has its own attributes such as scale, resolution, and geographical coordinates. Although layers also have these attributes, however, when the layer is loaded to the map for display, it is displayed with the map attribute value.
This class declares some map-related events. In this way, you can directly register the event listener function in the tag. For example, <iclient: Map load = "onLoad (event)"/>, the onload (event) function is the listener function of event load. A listener function is also called an event response function. When an event is triggered, an operation in the listener function is executed.

Here, I use the setstyle () method to control the display direction if the space is sufficient. The following attributes are available.

  Infoplacement Type: String CSS inheritance: No
Infowindow shows the position, that is, the direction position, including: top right, bottom right, top left, bottom left, bottom right. This style is defined by the infoplacement enumeration class. The upper right position is upperright by default.

  Lowerleftradius Type: Number Format: length CSS inheritance: No
Radians in the lower left corner. The default value is 5 degrees.
Infowindow
    Lowerrightradius Type: Number Format: length CSS inheritance: No
Radian in the lower right corner. The default value is 5 degrees.
Infowindow
    Shadowalpha Type: Number CSS inheritance: No
Shadow transparency. The default value is 1.0, indicating opacity.
Infowindow
    Shadowangle Type: Number CSS inheritance: No
Shadow angle. The default value is 45 degrees. Clockwise indicates the positive direction and counterclockwise indicates the negative direction.
Infowindow
    Shadowcolor Type: uint format: Color CSS inheritance: Yes
Shadow color. The default value is black.
Infowindow
    Shadowdistance Type: Number Format: length CSS inheritance: no theme: halo, spark
Shadow depth. The default value is 0.0.
Infowindow
    Upperleftradius Type: Number Format: length CSS inheritance: No
Radians in the upper left corner. The default value is 5 degrees.

Infowindow

    Upperrightradius Type: Number Format: length CSS inheritance: No
Radian in the upper right corner. The default value is 5 degrees.

Map. infowindow. setstyle ("infoplacement", "lowerleft"); // lower left corner.

However, the setstyle () in flex compares the station memory, making this method quite messy. Use it if your friends like it. Hey!

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.