Created
April 24, 2009 19:21
-
-
Save Miuler/101298 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ext.ux.GMapPanel - Google Maps | |
// Extensión para ExtJs para crear mapas de google | |
function open_map(el, evn){ | |
_latitude = 10; | |
_longitude = -70; | |
winMap = new Ext.Window({ | |
layout: 'fit', | |
title: 'Unidad en google maps', | |
//closeAction: 'hide', | |
width: 585, | |
height: 420, | |
items: [{ | |
id: 'CSDGMap', | |
xtype: 'gmappanel', | |
zoomLevel: 7, | |
gmapType: 'map', | |
//addControl: new GSmallMapControl(), | |
mapControls: ['GMapTypeControl', 'GLargeMapControl'], | |
setCenter: { | |
lat: _latitude, | |
lng: _longitude, | |
marker: {title: 'Punto de prueba'} | |
}, | |
markes: [{ | |
lat: _latitude, | |
lng: _longitude, | |
marker: {title: 'Punto de prueba jojo'} | |
}] | |
}] | |
}); | |
CSDGMap = Ext.getCmp('CSDGMap'); | |
winOptionUnit.hide(); | |
winMap.show(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment