Skip to content

Instantly share code, notes, and snippets.

@Miuler
Created April 24, 2009 19:21
Show Gist options
  • Save Miuler/101298 to your computer and use it in GitHub Desktop.
Save Miuler/101298 to your computer and use it in GitHub Desktop.
// 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