Opened 12 years ago

Closed 12 years ago

#161 closed defect (fixed)

Dynamic legend not showing when changing scale

Reported by: andersd Owned by: theduckylittle
Priority: major Milestone: 2.6.1
Component: GeoMOOSE/PHP Version: 2.6
Keywords: Cc: Bob.Bistrais@…

Description

This was first reported by Bob a while back as follows and he says it more clearly than I:

I have map layers that have a Maxscaledenom set. The legends for these layers were not displaying, even when zoomed into the visible scale range. I am now finding that, with the Maxscaledenom set, if the layer is turned off until you zoom into the Maxscaledenom, the legend will display when you turn it on. If you have the layer on when outside the maxscaledenom, then zoom into the visible range, the legend does not show unless you turn the layer off, then on again. It’s like you need to “refresh” the TOC to get the legend to show.

A simple way to test in trunk demo is as follows:

  1. Go to trunk demo.
  2. edit parcels.map - add --> maxscaledenom 20000 <-- to layer
  3. Open app - zoom in (legend does not show)
  4. Turn layer off/on - legend shows

Change History (3)

comment:1 by theduckylittle, 12 years ago

Owner: set to theduckylittle
Status: newassigned

comment:2 by theduckylittle, 12 years ago

Status: assignedtesting

I was able to recreate this given the instructions. The fix is in r930.

comment:3 by andersd, 12 years ago

Resolution: fixed
Status: testingclosed

Tested in Chrome as indicated in the original problem. Seems to be working now.

Note: See TracTickets for help on using tickets.