TButton

(TButton.TButton Method)

Creates the new button object for user defined buttons maintained in a TMap object. The TButton object is the return value of the method AddCustomizedButton (buttonX, buttonY, buttonIconURL) of a specific TMap object. You could get a TButton object through the return value of the method AddCustomizedButton (buttonX, buttonY, buttonIconURL) of a specific TMap object.
public TButton():Void

Parameters

  • Void
  • Returns

  • Void
  • Example

    The following example shows how to add a customized button on the current map view.
    <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() {
            button=map0.AddCustomizedButton(24, 8,"images/example_15/button.png");;
        }
    </script>
        

    See also

  • AddCustomizedButton()