OpenLayers OpenLayers

Ticket #99 (closed feature: fixed)

Opened 2 years ago

Last modified 1 year ago

Scale-dependent layer visibility

Reported by: hobu@hobu.net Assigned to: euzuro
Priority: blocker Milestone: 2.2 Release
Component: Layer Version:
Keywords: Cc:
State:

Description

It is desireable to limit the viewability of layers. For example, with a MapServer WMS, I use MAXSCALE/MINSCALE to limit when a specific layer can be drawn. When OL queries the layer outside those bounds, multiple transparent tiles are returned. It'd be nice to not have this overhead, including maybe shutting off or somehow color-coding the layer in the LayerSwitcher to indicate to the user what is going on.

Attachments

layersdisplay.patch (2.6 kB) - added by euzuro on 10/09/06 19:14:51.
adding one small if clause to keep from calling calculateInRange() on layer initialization if the layer is a baselayer -- that has no sense

Change History

06/22/06 22:42:08 changed by hobu@hobu.net

I'd also add that WMS provides a ScaleHint parameter that might be useful in this regard.

06/26/06 13:55:37 changed by sderle

  • milestone set to Farallon Islands.

10/02/06 11:41:02 changed by sderle

  • priority changed from minor to major.

10/02/06 11:41:38 changed by sderle

  • summary changed from Scale-dependent rendering to Scale-dependent layer visibility.

10/03/06 15:59:25 changed by euzuro

  • status changed from new to assigned.

10/05/06 00:29:27 changed by euzuro

  • status changed from assigned to closed.
  • resolution set to fixed.

fixed, mostly with r1577

10/09/06 18:43:31 changed by euzuro

  • priority changed from major to blocker.
  • status changed from closed to reopened.
  • resolution deleted.

Ack! This fix is the reason why commercial layers suddenly aren't working #334

10/09/06 18:47:24 changed by euzuro

  • keywords set to review.

The problem (as mentioned in #334) is that we were testing if the baselayer was "inRange" when really, the entire inRange concept should only apply to base layers.

This patch should clear that problem up.

Please review.

10/09/06 19:14:51 changed by euzuro

  • attachment layersdisplay.patch added.

adding one small if clause to keep from calling calculateInRange() on layer initialization if the layer is a baselayer -- that has no sense

10/09/06 19:26:40 changed by crschmidt

  • status changed from reopened to closed.
  • resolution set to fixed.

Reviewed, committed with additional comments as r1707.

07/05/07 17:00:47 changed by euzuro

  • keywords deleted.