(TMap.SetLegend Method)
Adds the content specified by the legendStr to the legend panel.
public SetLegend(legendStr):Void
<div id="mapContainer" style="width: 640px; height: 400px;"></div> <script type="text/javascript"> var map0 = new TMap(mapContainer, 25.7590256665386, -80.3738769902151, 15, mapLoaded, 1, true, "", "hybrid"); function mapLoaded() { map0.SetPanelVisibility("LEGEND", "SHOW"); map0.SetLegend("Hello, this is a legend."); } </script>