Google:GMap2
De W3API
Contenido |
[editar] Descripción
La clase GMap2 representa un Mapa. Es la clase principal de Google Maps.
[editar] Sintaxis
[editar] Ejemplo
function load(){
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("mapa"));
map.setCenter(new GLatLng(40.674389,-4.700432), 12);
}
}
[editar] Campos
[editar] Constructores
- GMap2()
[editar] Métodos
[editar] Configuracion
- enableDragging()
- disableDragging()
- draggingEnabled()
- enableInfoWindow()
- disableInfoWindow()
- infoWindowEnabled()
- enableDoubleClickZoom()
- disableDoubleClickZoom()
- doubleClickZoomEnabled()
- enableContinuousZoom()
- disableContinuousZoom()
- continuousZoomEnabled()
- enableGoogleBar()
- disableGoogleBar()
- enableScrollWheelZoom()
- disableScrollWheelZoom()
- scrollWheelZoomEnabled()
[editar] Controles
[editar] Tipos de Mapa
[editar] Estado del mapa
[editar] Modificación del estado del mapa
- setCenter()
- panTo()
- panBy()
- panDirection()
- setZoom()
- zoomIn()
- zoomOut()
- savePosition()
- returnToSavedPosition()
- checkResize()
[editar] Superposiciones
[editar] Ventana de información
- openInfoWindow()
- openInfoWindowHtml()
- openInfoWindowTabs()
- openInfoWindowTabsHtml()
- showMapBlowup()
- updateInfoWindow()
- updateCurrentTab()
- closeInfoWindow()
- getInfoWindow()
[editar] Transformaciones de Coordenadas
- fromContainerPixelToLatLng()
- fromLatLngToContainerPixel()
- fromLatLngToDivPixel()
- fromDivPixelToLatLng()