#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);


OpenLayers.Layer.Google.v2.onMapResize.apply(this, arguments);


#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.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.
Last modified 6 years ago Last modified on Aug 24, 2010 8:08:54 AM