Skip to content

Instantly share code, notes, and snippets.

Created December 29, 2013 17:07
Show Gist options
  • Save anonymous/8172388 to your computer and use it in GitHub Desktop.
Save anonymous/8172388 to your computer and use it in GitHub Desktop.
Ext.QuickTips.init();
Ext.require('Ext.chart.*');
Ext.require('Ext.Date.*')
Ext.require(['Ext.Window', 'Ext.fx.target.Sprite', 'Ext.layout.container.Fit',
'Ext.window.MessageBox', 'Ext.form.*']);
function onReady(){
var marker_clear = "resources/images/llnwmarker.png";
var marker_green = "resources/images/pin.png";
var marker_yellow = "resources/images/warningpin.png";
var locations = new Array();
var locations = [
//{ /*Boston*/ animation: google.maps.Animation.BOUNCE,lat: 42.339641,lng: -71.094224,icon: marker_yellow,title: 'Boston'},
{ /*Rio de Janeiro*/ animation: google.maps.Animation.BOUNCE,lat: -22.928042,lng: -43.209229,icon: marker_yellow},
{ /*Paris*/ lat: 47.398349,lng: 2.812500,icon: marker_clear},
{ /*London*/ lat: 51.508742,lng: -0.109863,icon: marker_clear},
{ /*Buenos Aires*/ lat: -34.633208,lng: -58.381348,icon: marker_clear},
{ /*Lima*/ animation: google.maps.Animation.BOUNCE,lat: -12.103781,lng: -77.036133,icon: marker_clear},
{ /*Ethiopia*/ lat: 8.754795,lng: 42.539063,icon: marker_clear},
{ /*Sydney*/ lat: -33.943360,lng: 151.259766,icon: marker_clear},
{ /*Moscow*/ lat: 56.752723,lng: 49.218750,icon: marker_clear}
];
var mapwin = Ext.create('Ext.panel.Panel', {
autoShow: true,
layout: 'fit',
//title: 'Purge Map',
border: false,
items: {
xtype: 'gmappanel',
center: new google.maps.LatLng(41.923, 12.513),
markers: locations
}
});
outerViewport = new Ext.Viewport({
layout : 'border',
items : [{
region : 'north',
layout : 'hbox',
layoutConfig : {
pack : 'end'
},
height : 53, // give north and south regions a height
border : false,
bodyStyle : 'background-color: transparent',
items : [/* topPanel */]
}, masterTabPanel = new Ext.TabPanel({
region : 'center',
activeTab : 0,
layoutOnTabChange : true,
unstyled : true,
plain : true,
hideMode : 'offsets',
hideBorders : true,
border : false,
items : [{
title : 'Purge Map',
border : false,
layout : 'fit',
hideBorders : true,
hideMode : 'offsets',
items : [mapwin]
}]
})]
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment