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!