[OpenLayers-Commits] r11343 -
sandbox/bartvde/sencha/openlayers/examples
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Wed Feb 23 10:57:25 EST 2011
Author: bartvde
Date: 2011-02-23 07:57:24 -0800 (Wed, 23 Feb 2011)
New Revision: 11343
Modified:
sandbox/bartvde/sencha/openlayers/examples/mobile-sencha.html
Log:
removing unused code
Modified: sandbox/bartvde/sencha/openlayers/examples/mobile-sencha.html
===================================================================
--- sandbox/bartvde/sencha/openlayers/examples/mobile-sencha.html 2011-02-23 15:56:40 UTC (rev 11342)
+++ sandbox/bartvde/sencha/openlayers/examples/mobile-sencha.html 2011-02-23 15:57:24 UTC (rev 11343)
@@ -31,31 +31,6 @@
var app = new Ext.Application({
name: "ol",
- getStore: function() {
- Ext.regModel('Layer', {
- fields: ['id', 'name', 'visibility', 'zindex', 'cls']
- });
-
- var data = [];
- Ext.each(map.layers, function(layer) {
- if (layer.displayInLayerSwitcher === true) {
- var visibility, cls;
- if (layer.isBaseLayer === true) {
- cls = 'baselayer';
- visibility = (map.baseLayer == layer) && layer.getVisibility();
- } else {
- cls = 'overlay';
- visibility = layer.getVisibility();
- }
- data.push({id: layer.id, name: layer.name, cls: cls, visibility: visibility, zindex: layer.getZIndex()});
- }
- });
- return new Ext.data.Store({
- model: 'Layer',
- sorters: 'zindex',
- data: data
- });
- },
launch: function() {
this.viewport = new Ext.Panel({
fullscreen: true,
@@ -110,7 +85,6 @@
}, {
text: "Layers",
handler: function() {
- var store = this.getStore();
if (!this.popup) {
this.popup = new Ext.Panel({
floating: true,
More information about the Commits
mailing list