TMap

(TMap.ShowInfoWindow Method)

Shows a simple info window without the tabs at the given location, which is specified by float value arguments latitude and longitude. The window label text is given by string myLabel and the window content text is given by the string myContent. The width, height and border of the info window can be specified using the string styleStr.
Public ShowInfoWindow(latitude, longtitude, styleStr, myLabel, myContent):Void

Parameters

  • latitude : Number - Set the latitude of the info window's location on the map.
  • longtitude : Number - Set the longtutude of the information window's location on the map.
  • styleStr : String - Set the width,height and border of the info window.
  • myLabel : String - Set the window label text.
  • myContent : String - Set the window content text.
  • 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() {
            map0.ShowInfoWindow(25.7590256665386, -80.3738769902151,
                                    "border=normal;width=200;height=100",
                                    "Info Window without Tabs",
                                    "This is a Simple info window without tabs");
        }
        
    </script>
        

    See also

  • ShowInfoWindowTabs()
  • HideInfoWindow()

    See example

  • Showing the information window on a Map