myMap.declutter = new CircleDeclutter();
myMap.declutter = null;
myMap.leaderLines = new LeaderLines();
| Property | Description | Example |
|---|---|---|
| alpha | Use this parameter to set alpha value of the leader lines. |
lines.alpha = .5;
|
| dotMode |
Use this parameter to set the type of dot on the leader line
|
lines.dotMode = 2;
|
| dotIcon | Use this parameter to set a Class object to use as an icon for the dot of the leader line, if dotMode 2 is being used |
[Embed (source="image.gif")]
private var imageIcon:Class;
lines.dotMode = 2;
lines.dotIcon = imageIcon;
|
| dotImageURL | Use this parameter to set an image URL to use as an icon for the dot of the leader line, if dotMode 2 is being used |
lines.dotMode = 2;
lines.dotImageURL = "image.gif";
|
| lineColor | Use this parameter to set a color to be used for the leader line |
lines.lineColor = 0xfff000;
|
| Function | Description | Example |
|---|---|---|
|
|
Use this function to remove the leader line from a decluttered POI
|
lines.removeLine(poi);
|
|
|
Use this function to remove all the leader lines from the map
|
lines.removeAllLines();
|
|
|
Use this function to draw the leader line from a decluttered POI to its location
Note: This function would only be used if you have already called lines.removeLine(poi) or lines.removeAllLines()
|
lines.drawLine(poi);
|
|
|
Use this function to draw all the leader lines for all the POIs
Note: This function would only be used if you have already called lines.removeLine(poi) or lines.removeAllLines()
|
lines.drawAllLines();
|