TMap

(TMap.ShowInfoWindowTabs Method)

Shows an info window with tabs at the given location, which is specified by float value arguments latitude and longitude. The width, height and border of the info window can be specified using the string styleStr. The window label text is given by string myLabel and the window content text to be displayed in the tabs is given by the array myContent. The tab array objects are created using the TtabObject(tab_label,tab_content) function which takes the label and content of the tab as the input.
Public ShowInfoWindowTabs(latitude, longtitude, styleStr, myLabel, myContent):Void

Parameters

  • latitude : Number - Set the latitude of the info window Tabs' location on the map.
  • longtitude : Number - Set the longtutude of the information window Tabs' location on the map.
  • styleStr : String - Set the width,height and border of the info window Tabs.
  • myLabel : String - Set the window label text.
  • myContent : Array - Set the window content text to be displayed in the tabs.The tab array objects are created using the TtabObject(tab_label,tab_content) function which takes the label and content of the tab as the input.
  • Returns

  • Void
  • Example

    The following example set the position of the legend panel on the map.
    <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() {
            var tabObj0 = new TTabObject("Latitude",latitude);
            var tabObj1 = new TTabObject("Longitude",longitute);
            var tabArr = new Array ();
            tabArr[0] = tabObj0;
            tabArr[1] = tabObj1;
            map0.ShowInfoWindowTabs(latitude, longitute,
                                        "border=normal;width=200;height=100",
                                        "Info Window with Tabs",
                                        tabArr);
        }
        
    </script>
        

    See also

  • ShowInfoWindow()
  • HideInfoWindow()

    See example

  • Showing the information window on a Map