Release/2.10/Notes

Version 4 (modified by ahocevar, 3 years ago)

--

  • 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 (e.g. OpenLayers.Layer.Google.prototype.onMapResize.apply(this, arguments);), the code needs to be changed to call it on v2 instead (e.g. OpenLayers.Layer.Google.v2.onMapResize.apply(this, arguments);)