[Commits] r2614 - sandbox/cmoullet/ux/StreetViewPanel/ux/widgets

commits at geoext.org commits at geoext.org
Wed Mar 2 17:03:27 CET 2011


Author: pgiraud
Date: 2011-03-02 17:03:27 +0100 (Wed, 02 Mar 2011)
New Revision: 2614

Modified:
   sandbox/cmoullet/ux/StreetViewPanel/ux/widgets/StreetViewPanel.js
Log:
Set displayInLayerSwitcher for the vector layers

Modified: sandbox/cmoullet/ux/StreetViewPanel/ux/widgets/StreetViewPanel.js
===================================================================
--- sandbox/cmoullet/ux/StreetViewPanel/ux/widgets/StreetViewPanel.js	2011-03-02 09:55:30 UTC (rev 2613)
+++ sandbox/cmoullet/ux/StreetViewPanel/ux/widgets/StreetViewPanel.js	2011-03-02 16:03:27 UTC (rev 2614)
@@ -471,6 +471,7 @@
             // Add the 2D navigation tool in the map
             if (this.showTool) {
                 this.panorama.navigationToolLayer = new OpenLayers.Layer.Vector("2DNavigationTool", {
+                    displayInLayerSwitcher: false,
                     styleMap: new OpenLayers.StyleMap({
                         "default": {
                             externalGraphic: this.baseUrl + "/resources/tool.png",
@@ -482,7 +483,8 @@
                         "select": {
                             cursor: "pointer"
                         }
-                    })});
+                    })
+                });
                 this.map.addLayer(this.panorama.navigationToolLayer);
                 this.dragControl = new OpenLayers.Control.DragFeature(this.panorama.navigationToolLayer, {
                     doneDragging: function(pixel) {
@@ -505,6 +507,7 @@
             // Add the links in the map
             if (this.showLinks) {
                 this.panorama.navigationLinkLayer = new OpenLayers.Layer.Vector("2DNavigationLink", {
+                    displayInLayerSwitcher: false,
                     styleMap: new OpenLayers.StyleMap({
                         "default": {
                             externalGraphic: this.baseUrl + "/resources/link.png",



More information about the Commits mailing list