To enable the alignment of the Map legends, follow the given steps.
Step1: Create a Map sample, and include the necessary script files.
Step 2: By enabling the alignment of the Map legend, you can change the alignment according to your requirement. It can be near, far, or center for each of the top, bottom, left, or right position.
legendSettings: { showLegend:true, dockOnMap:true, dockPosition: "top", alignment:"far" },
$("#map").ejMap({ dataSource: population_data, colorValuePath: "Growth", legendSettings: { showLegend:true, dockOnMap:true, dockPosition: "top", alignment:"far" }, });
The following screenshot shows the alignment for Map legends:
Figure 1: Legend at far alignment Sample Link: |
This page will automatically be redirected to the sign-in page in 10 seconds.