posts - 41,  comments - 90,  trackbacks - 0
          OpenLayers.Layer.Google
          #2493: Google layer instances with overridden methods may need to be modified, because some methods are now mixed in from OpenLayers.Layer.Google.v2. Affected API methods are
          onMapResize,
          getMapObjectBoundsFromOLBounds,
          setMapObjectCenter,
          dragPanMapObject,
          getMapObjectLonLatFromMapObjectPixel,
          getMapObjectPixelFromMapObjectLonLat,
          getMapObjectZoomFromMapObjectBounds,
          getMapObjectLonLatFromLonLat and getMapObjectPixelFromXY.
          This means that when calling any of these methods on the prototype, the code needs to be changed to call it on OpenLayers.Layer.Google.v2 instead. You would e.g. have to change
          OpenLayers.Layer.Google.prototype.onMapResize.apply(this, arguments);
          to
          OpenLayers.Layer.Google.v2.onMapResize.apply(this, arguments);
          OpenLayers.Control.Panel
          #2764: OpenLayers.Control.Panel does not change the active state of controls with a type of OpenLayers.Control.TYPE_BUTTON any more. If you want to retain the old behavior, create your panel with an overridden activateControl method like this:
          var panel = new OpenLayers.Control.Panel({ activateControl: function(control) { OpenLayers.Control.Panel.prototype.activateControl.apply(this, arguments); if (control.active && control.type == OpenLayers.Control.TYPE_TOOL) { for (var i=panel.controls.length-1; i>=0; --i) { panel.controls[i].type == OpenLayers.Control.TYPE_BUTTON && panel.controls[i].deactivate(); } } }
          });
          New Addins
          InlineXhtml - adds support for WMS layers with SVG as image format, for SVG enabled browsers.
          posted on 2010-09-13 12:22 天狼 閱讀(553) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發(fā)表評論。


          網站導航:
           
          主站蜘蛛池模板: 崇文区| 黄浦区| 东阿县| 吕梁市| 仙游县| 宁都县| 扎赉特旗| 哈密市| 田林县| 满城县| 敦化市| 巴中市| 泸水县| 黎川县| 宜黄县| 黄冈市| 蕉岭县| 南溪县| 应城市| 邹城市| 徐闻县| 鄂州市| 翁牛特旗| 抚松县| 和静县| 曲靖市| 玉林市| 兴化市| 安新县| 保山市| 黑龙江省| 屏东县| 霍邱县| 略阳县| 东乡县| 罗甸县| 响水县| 宝兴县| 阿尔山市| 九龙坡区| 海晏县|