OpenLayers OpenLayers

Ticket #672 (closed feature: fixed)

Opened 1 year ago

Last modified 10 months ago

Adds maxZoomLevel option for WFS layer

Reported by: fvanderbiest Assigned to: euzuro
Priority: minor Milestone: 2.5 Release
Component: Layer.WFS Version: SVN
Keywords: Cc:
State:

Description

This patch adds the ability to load a WFS layer only between some zoom levels. Should be generalized to other types of layer ?

Attachments

wfs_maxZoomLevel.patch (0.9 kB) - added by fvanderbiest on 04/18/07 08:25:41.
wfs maxZoomLevel
minZoomLevel.patch (0.5 kB) - added by euzuro on 08/27/07 05:45:05.
you're right, chris. the only place min/max zoom levels should be used is in the FixedZoomLevels descendent layers. Let's remove this.
minZoomLevel.2.patch (1.5 kB) - added by euzuro on 08/27/07 11:43:21.
instead of removing, deprecate and warn. 3.0 here we come!!!!!

Change History

04/18/07 08:25:41 changed by fvanderbiest

  • attachment wfs_maxZoomLevel.patch added.

wfs maxZoomLevel

04/18/07 09:03:34 changed by crschmidt

  • milestone changed from 2.4 Release to 2.5 Release.

07/03/07 20:01:30 changed by euzuro

  • owner set to euzuro.

08/03/07 12:02:55 changed by crschmidt

The right way to do this is to use scale based rendering -- maxRes/minRes options on the layer, rather than min/max zoom level. (the existing minzoomlevel support was a hack that should have been removed and wasn't.)

08/27/07 05:45:05 changed by euzuro

  • attachment minZoomLevel.patch added.

you're right, chris. the only place min/max zoom levels should be used is in the FixedZoomLevels descendent layers. Let's remove this.

08/27/07 05:47:30 changed by euzuro

new patch added. up for review

08/27/07 11:19:04 changed by crschmidt

  • keywords deleted.

I'd like to not remove this functionality, since we're already using it widely (including, I think, in examples). Instead, deprecate this, and in the deprecation warning, include a link to wikipage which documents the right way to do it.

Erik says he'll remake the patch.

08/27/07 11:43:21 changed by euzuro

  • attachment minZoomLevel.2.patch added.

instead of removing, deprecate and warn. 3.0 here we come!!!!!

08/27/07 11:45:24 changed by euzuro

  • keywords set to review.

tests pass in FF and ie6

08/27/07 12:17:16 changed by crschmidt

  • keywords changed from review to commit.

Checked the warning, it wraps properly in firebug (yay) so this is good to commit.

08/27/07 12:18:16 changed by euzuro

  • keywords deleted.
  • status changed from new to closed.
  • resolution set to fixed.

(In [4056]) deprecate use of 'minZoomLevels' in WFS layer. (Closes #672)