yo encontre en el api los botones esos , bueno eso creo pero no se como agregarlos en el script , me pudieran ayudar
Código: Seleccionar todo
; *******************************************************
; SCRIPT PARA ABRIR GOOGLE TRAFFICO
;
;
; *******************************************************
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
_IEErrorHandlerRegister()
Local $oIE = _IECreateEmbedded()
GUICreate("CAMERA DVR", 810, 580, _
(@DesktopWidth - 840) / 2, (@DesktopHeight - 580) / 2, _
$WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
GUICtrlCreateObj($oIE, 0, 0, 820, 450)
Local $GUI_Button_Zoom_in = GUICtrlCreateButton("Zoom in", 10, 500, 100, 30)
Local $GUI_Button_Zoom_out = GUICtrlCreateButton("Zoom out", 120, 500, 100, 30)
Local $GUI_Button_Left = GUICtrlCreateButton("Left", 230, 500, 100, 30)
Local $GUI_Button_Right = GUICtrlCreateButton("Right", 340, 500, 100, 30)
Local $GUI_Button_Down = GUICtrlCreateButton("Down", 280, 540, 100, 30)
Local $GUI_Button_Up = GUICtrlCreateButton("Up", 280, 460, 100, 30)
GUISetState() ;Show GUI
_IENavigate($oIE, @ScriptDir & "\Google Map.html")
; Waiting for user to close the window
While 1
Local $msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $GUI_Button_Zoom_in
_IEAction($oIE, "Zoom in")
Case $msg = $GUI_Button_Zoom_out
_IEAction($oIE, "Zoom out")
Case $msg = $GUI_Button_Left
_IEAction($oIE, "Left")
Case $msg = $GUI_Button_Right
_IEAction($oIE, "Right")
Case $msg = $GUI_Button_Down
_IEAction($oIE, "Down")
Case $msg = $GUI_Button_Up
_IEAction($oIE, "Up")
EndSelect
WEnd
GUIDelete()
Exit
y este es el html
Código: Seleccionar todo
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"/>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Google Maps Embedded</title>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false""></script>
<script type="text/javascript">
var initialize = function() {
// Latitude and Longitude
var latlng = new google.maps.LatLng(25.8647,-80.3247);
// Just some option
var options = { zoom: 12,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
// Map object
var map = new google.maps.Map(document.getElementById('map'), options);
var trafficLayer = new google.maps.TrafficLayer();
trafficLayer.setMap(map);
}
window.onload = initialize;
</script>
</head>
<body style="margin:0; padding:0;">
<div id="map" style="width:100%; height:100%"></div>
</body>
</html>
el tiene ya el zoom directo pero quisiera tener la option por lo botones , de moverlo el mapa y el zoom
muchas gracias