[Commits] r2730 - sandbox/gxm/geoext/gxm/examples
commits at geoext.org
commits at geoext.org
Wed Jun 15 14:49:32 CEST 2011
Author: marcjansen
Date: 2011-06-15 14:49:32 +0200 (Wed, 15 Jun 2011)
New Revision: 2730
Removed:
sandbox/gxm/geoext/gxm/examples/simple.html
Log:
remove obsolete testfile simple.html
Deleted: sandbox/gxm/geoext/gxm/examples/simple.html
===================================================================
--- sandbox/gxm/geoext/gxm/examples/simple.html 2011-06-15 12:48:48 UTC (rev 2729)
+++ sandbox/gxm/geoext/gxm/examples/simple.html 2011-06-15 12:49:32 UTC (rev 2730)
@@ -1,524 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <!--
- <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
- <meta name="apple-mobile-web-app-capable" content="yes" />
- -->
- <title>Example</title>
- <link rel="stylesheet" href="../external/sencha-touch-1.1.0/resources/css/sencha-touch.css" type="text/css">
- <link rel="stylesheet" href="../external/OpenLayers.r11966/theme/default/style.css" type="text/css">
- <link rel="stylesheet" href="../css/gxm.css" type="text/css">
- <script type="text/javascript" src="../external/sencha-touch-1.1.0/sencha-touch.js"></script>
- <script type="text/javascript" src="../external/OpenLayers.r11966/lib/OpenLayers.js?mobile"></script>
-
- <!-- This file loads all relevant files -->
- <script type="text/javascript" src="../lib/GXM.js"></script>
-
- <script type="text/javascript">
-
-//TODO: remove eventually
-log = function(){
- if ( console && console.log ) {
- for (arg in arguments) {
- console.log(arguments[arg]);
- }
- }
-};
-
- Ext.setup({
- onReady: function(){
- var map = new OpenLayers.Map({
- allOverlays: true,
- controls: []
- });
- var ol_wms = new OpenLayers.Layer.WMS(
- "OpenLayers WMS",
- "http://vmap0.tiles.osgeo.org/wms/vmap0",
- {
- layers: "basic"
- }
- );
-
- map.addLayers([ol_wms]);
-
-/* ------------------------------------------------------------------
- * Lazy loading of the mappanel
- * ...with an existing OpenLayers.Map-object
- * ------------------------------------------------------------------
- */
-// var mapPanel = {
-// xtype: 'gxm_mappanel',
-// map: map
-// };
-// new Ext.Panel({
-// fullscreen: true,
-// items: [ mapPanel ]
-// });
-
-/* ------------------------------------------------------------------
- * Loading through instanciation of GXM.MapPanel
- * ...with an existing OpenLayers.Map-object
- * ------------------------------------------------------------------
- */
-// var mapPanel = new GXM.MapPanel({
-// map: map
-// });
-/* ------------------------------------------------------------------
- * Loading through instanciation of GXM.MapPanel
- * ...without an existing OpenLayers.Map-object
- * ------------------------------------------------------------------
- */
-// var mapPanel = new GXM.MapPanel({
-// layers: [
-// ol_wms.clone()
-// ]
-// });
-/* ------------------------------------------------------------------
- * using the center-property
- * ... as string
- * ------------------------------------------------------------------
- */
-// var mapPanel = new GXM.MapPanel({
-// layers: [
-// ol_wms.clone()
-// ],
-// center: '7,51'
-// });
-/* ------------------------------------------------------------------
- * using the center-property
- * ... as array
- * ------------------------------------------------------------------
- */
-// var mapPanel = new GXM.MapPanel({
-// layers: [
-// ol_wms.clone()
-// ],
-// center: [ 7, 51 ]
-// });
-
-/* ------------------------------------------------------------------
- * using the extent-property
- * ... with a string
- * ------------------------------------------------------------------
- */
-// var mapPanel = new GXM.MapPanel({
-// layers: [
-// ol_wms.clone()
-// ],
-// extent: '7,51,8,52'
-// });
-
-
-/* ------------------------------------------------------------------
- * using the gxm button
- * ... simple case with only one action (zoom in / out)
- * ------------------------------------------------------------------
- */
-// var zoomin = new OpenLayers.Control.ZoomIn();
-// var zoomout = new OpenLayers.Control.ZoomOut();
-//
-// var btnZoomIn = new GXM.Button({
-// control: zoomin,
-// map: map,
-// iconCls: 'add',
-// iconMask: true,
-// handler: function(){
-// Ext.Msg.alert('Zoom-In', 'Callback method');
-// }
-// });
-// var btnZoomOut = {
-// xtype: 'gxm_button',
-// control: zoomout,
-// map: map,
-// iconCls: 'minus',
-// iconMask: true,
-// handler: function(){
-// Ext.Msg.alert('Zoom-Out', 'Callback method');
-// }
-// };
-//
-// var mapPanel = new GXM.MapPanel({
-// dockedItems: [{
-// xtype: 'toolbar',
-// dock: 'top',
-// items: [btnZoomIn, btnZoomOut]
-// }],
-// map: map,
-// controls: [
-// new OpenLayers.Control.Navigation()
-// ],
-// center: [7, 51],
-// zoom: 7
-// });
-
-
-
-/* ------------------------------------------------------------------
- * using the gxm button
- * ... more complicated: a kind of toggle button
- * ------------------------------------------------------------------
- */
-// var nav = new OpenLayers.Control.Navigation();
-//
-// var btnNavigation = {
-// xtype: 'segmentedbutton',
-// allowDepress: true,
-// items: [{
-// text: 'Navigation',
-// xtype: 'gxm_button',
-// map: map,
-// control: nav,
-// pressed: true,
-// handler: function(btn, evt, activeState){
-// Ext.Msg.alert('Navigation', 'Navigation is ' + (activeState ? 'active' : 'inactive') + '.');
-// }
-// }]
-// };
-//
-// var mapPanel = new GXM.MapPanel({
-// dockedItems: [{
-// xtype: 'toolbar',
-// dock: 'top',
-// items: [btnNavigation]
-// }],
-// map: map,
-// center: [7, 51],
-// zoom: 7
-// });
-
-
-/* ------------------------------------------------------------------
- * using the gxm buttons
- * ... disabling / enabling inside group, the explicit way
- * ------------------------------------------------------------------
- */
-//
-//
-// // create a vector layer for drawing
-// var vector = new OpenLayers.Layer.Vector('Vector Layer', {
-// styleMap: new OpenLayers.StyleMap({
-// temporary: OpenLayers.Util.applyDefaults({
-// pointRadius: 16
-// }, OpenLayers.Feature.Vector.style.temporary)
-// })
-// });
-//
-// var ctrlDrawPoint = new OpenLayers.Control.DrawFeature(
-// vector,
-// OpenLayers.Handler.Point
-// );
-// var ctrlDrawLine = new OpenLayers.Control.DrawFeature(
-// vector,
-// OpenLayers.Handler.Path
-// );
-// var ctrlDrawPoly = new OpenLayers.Control.DrawFeature(
-// vector,
-// OpenLayers.Handler.Polygon
-// );
-//
-// var btnDigPoint = {
-// xtype: 'gxm_button',
-// control: ctrlDrawPoint,
-// map: map,
-// text: 'Point',
-// pressed: true,
-// exclusiveGroup: 'dig'
-// };
-// var btnDigLine = {
-// xtype: 'gxm_button',
-// control: ctrlDrawLine,
-// map: map,
-// text: 'Line' ,
-// exclusiveGroup: 'dig'
-// };
-// var btnDigPoly = {
-// xtype: 'gxm_button',
-// control: ctrlDrawPoly,
-// map: map,
-// text: 'Poly',
-// exclusiveGroup: 'dig'
-// };
-//
-// var digGroup = {
-// xtype: 'segmentedbutton',
-// items: [
-// btnDigPoint,
-// btnDigLine,
-// btnDigPoly
-// ]
-// };
-// var mapPanel = new GXM.MapPanel({
-// dockedItems: [{
-// xtype: 'toolbar',
-// dock: 'bottom',
-// items: [digGroup]
-// }],
-// map: map,
-// layers: vector,
-// center: [7, 51],
-// zoom: 7
-// });
-
-/* ------------------------------------------------------------------
- * using the gxm buttons
- * ... disabling / enabling inside group, through the use of
- * gxm_segmentedbutton
- * ------------------------------------------------------------------
- */
-//
-// // create a vector layer for drawing
-// var vector = new OpenLayers.Layer.Vector('Vector Layer', {
-// styleMap: new OpenLayers.StyleMap({
-// temporary: OpenLayers.Util.applyDefaults({
-// pointRadius: 16
-// }, OpenLayers.Feature.Vector.style.temporary)
-// })
-// });
-//
-// var ctrlDrawPoint = new OpenLayers.Control.DrawFeature(
-// vector,
-// OpenLayers.Handler.Point
-// );
-// var ctrlDrawLine = new OpenLayers.Control.DrawFeature(
-// vector,
-// OpenLayers.Handler.Path
-// );
-// var ctrlDrawPoly = new OpenLayers.Control.DrawFeature(
-// vector,
-// OpenLayers.Handler.Polygon
-// );
-//
-// var btnDigPoint = {
-// control: ctrlDrawPoint,
-// pressed: true,
-// text: 'Point'
-// };
-// var btnDigLine = {
-// control: ctrlDrawLine,
-// text: 'Line'
-// };
-// var btnDigPoly = {
-// control: ctrlDrawPoly,
-// text: 'Poly'
-// };
-//
-// var digGroup = {
-// xtype: 'gxm_segmentedbutton',
-// map: map,
-// items: [
-// btnDigPoint,
-// btnDigLine,
-// btnDigPoly
-// ]
-// };
-// var mapPanel = new GXM.MapPanel({
-// dockedItems: [{
-// xtype: 'toolbar',
-// dock: 'bottom',
-// items: [digGroup]
-// }],
-// map: map,
-// layers: vector,
-// center: [7, 51],
-// zoom: 7
-// });
-
-/* ------------------------------------------------------------------
- * using the gxm buttons
- * ... combination example with different segmented buttons
- * ------------------------------------------------------------------
- */
-//
-// // create a vector layer for drawing
-// var vector = new OpenLayers.Layer.Vector('Vector Layer', {
-// styleMap: new OpenLayers.StyleMap({
-// temporary: OpenLayers.Util.applyDefaults({
-// pointRadius: 16
-// }, OpenLayers.Feature.Vector.style.temporary)
-// })
-// });
-//
-// var ctrlDrawPoint = new OpenLayers.Control.DrawFeature(
-// vector,
-// OpenLayers.Handler.Point
-// );
-// var ctrlDrawLine = new OpenLayers.Control.DrawFeature(
-// vector,
-// OpenLayers.Handler.Path
-// );
-// var ctrlDrawPoly = new OpenLayers.Control.DrawFeature(
-// vector,
-// OpenLayers.Handler.Polygon
-// );
-//
-// var btnDigPoint = {
-// control: ctrlDrawPoint,
-// text: 'Point'
-// };
-// var btnDigLine = {
-// control: ctrlDrawLine,
-// text: 'Line'
-// };
-// var btnDigPoly = {
-// control: ctrlDrawPoly,
-// text: 'Poly'
-// };
-//
-// var digGroup = {
-// xtype: 'gxm_segmentedbutton',
-// map: map,
-// exclusiveGroup: 'working-on-map',
-// items: [
-// btnDigPoint,
-// btnDigLine,
-// btnDigPoly
-// ]
-// };
-//
-// var nav = new OpenLayers.Control.Navigation();
-//
-// var btnNavigation = {
-// xtype: 'gxm_segmentedbutton',
-// exclusiveGroup: 'working-on-map',
-// map: map,
-// items: [{
-// text: 'Navigation',
-// control: nav,
-// pressed: true
-// }]
-// };
-//
-// var mapPanel = new GXM.MapPanel({
-// dockedItems: [{
-// xtype: 'toolbar',
-// dock: 'bottom',
-// items: [digGroup, {xtype: 'spacer'}, btnNavigation]
-// }],
-// map: map,
-// layers: vector,
-// center: [7, 51],
-// zoom: 7
-// });
-
-
-/* ------------------------------------------------------------------
- * using the gxm layerlist
- * ... show / hide list on button click in overlay
- * ------------------------------------------------------------------
- */
-//
-// var btnLayerlist = {
-// xtype: 'button',
-// text: 'Layerlist',
-// handler: function(){
-// if (!this.popup) {
-// this.popup = new Ext.Panel({
-// floating: true,
-// modal: true,
-// centered: true,
-// hideOnMaskTap: true,
-// width: 240,
-// items: [{
-// xtype: 'gxm_layerlist',
-// map: map
-// }],
-// scroll: 'vertical'
-// });
-// }
-// this.popup.show('pop');
-// }
-// };
-//
-// var mapPanel = new GXM.MapPanel({
-// dockedItems: [{
-// xtype: 'toolbar',
-// dock: 'bottom',
-// items: [btnLayerlist]
-// }],
-// map: map,
-// controls: new OpenLayers.Control.Navigation(),
-// center: [7, 51],
-// zoom: 7
-// });
-
-
- /* ------------------------------------------------------------------
- * using the gxm layerlist
- * ... show / hide list on button click in overlay
- * ------------------------------------------------------------------
- */
-//
-// var btnLayerlist = {
-// xtype: 'button',
-// text: 'Layerlist',
-// handler: function(){
-// vp.setActiveItem(1, 'slide');
-// }
-// };
-//
-// var mapPanel = new GXM.MapPanel({
-// dockedItems: [{
-// xtype: 'toolbar',
-// dock: 'bottom',
-// items: [btnLayerlist]
-// }],
-// map: map,
-// controls: new OpenLayers.Control.Navigation(),
-// center: [7, 51],
-// zoom: 7
-// });
-// var layerList = {
-// xtype: 'gxm_layerlist',
-// // call with mapPanel...
-// // mapPanel: mapPanel
-// // ... or with layers and map
-// layers: mapPanel.layers,
-// map: map,
-// listeners: {
-// itemtap: function() {
-// Ext.Msg.alert('Application event "itemtap"', 'You can still register events as usual.');
-// }
-// }
-// };
-// var layerPanel = {
-// fullscreen: true,
-// layout: 'fit',
-// items: [
-// layerList
-// ],
-// dockedItems: [{
-// xtype: 'toolbar',
-// dock: 'top',
-// items: [{
-// text: 'Back',
-// ui: 'back',
-// handler: function(){
-// vp.setActiveItem(0);
-// }
-// }]
-// }]
-// };
-//
-// var vp = new Ext.Panel({
-// fullscreen: true,
-// layout: 'card',
-// items: [
-// mapPanel,
-// layerPanel
-// ]
-// });
-// vp.setActiveItem(0);
-
-
- // DEBUG only
-// window.mapPanel = mapPanel;
-// window.map = mapPanel.map;
- }
- });
- </script>
- </head>
- <body>
- </body>
-</html>
More information about the Commits
mailing list