LegendPosition: String;
The LegendPosition property determines map legend position.
Use the setLegendPosition method to set the property value, and the getLegendPosition method to get the property value. Property value cannot be set from JSON.
This property may have the following string values: bottom or top - legend position at the top or at the bottom of the map plot area, left or right - alignment to the left or to the right edge. These values can be combined using the | splitter.
Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component), and a map must be loaded in data area. Place the legend at the right above the map plot area:
// Get container that holds express report map var mapView = expressBox.getDataView().getMapView(); // Place the legend and the top right of the map plot area mapView.setLegendPosition("bottom|left");
After executing the example the legend is placed at the right above the map plot area:
See also: