Ticket #3466 (closed feature: fixed)

Opened 22 months ago

Last modified 21 months ago

Add zoomOffset to Google Layer

Reported by: landry Owned by: tschaub
Priority: minor Milestone: 2.12 Release
Component: Layer.Google Version: 2.10
Keywords: Cc:
State:

Description

Followup to  http://trac.osgeo.org/openlayers/ticket/2616, that'd be nice to have a similar feature for Google Layers, ie allowing one to use a map with a smaller maxExtent (ie not the whole world) and being able to display only a subset of Google layers.

As of now, if i have a map with numZoomLevels=12 and maxResolution=2445.9849046875, when i add a google layer the zoom level on it is wrong, while it could be 'fixed' by adding zoomOffset.

Change History

Changed 22 months ago by ahocevar

You can do this already with OpenLayers.Layer.GoogleNG. Please try it out, and close this ticket if your issue is resolved. http://openlayers.org/dev/examples/google-ng.html and http://openlayers.org/dev/examples/bing-tiles-restrictedzoom.html. A combination of the two should get you there.

Changed 21 months ago by landry

  • status changed from new to closed
  • resolution set to fixed

Oh, awesome. I can't really use/try it atm as i'm more or less constrained to ol 2.10, but sure it fixes the issue since XYZ supports zoomOffset and GoogleNG inherits from it.

Note: See TracTickets for help on using tickets.