Opened 12 years ago

#470 new defect

InitialView - doesn't show layer if allOverlays sometimes

Reported by: adube Owned by:
Priority: trivial Milestone: 1.8.0
Component: widgets Version: trunk
Keywords: Cc:

Description

Issue

When using a mappanel widget with the allOverlays option set to true, if any unbound widget that creates layers are declared before the initialview widget, the latter doesn't correctly activate the resource layer upon initial zooming and neither change the order of the highlight layer.

Cause

Let's say we declare a geoextprintform widget before the initialview. Upon creation (printWidgetExecution), a layer is created (the print extent vector layer) and added to the map. It becomes the map baseLayer. Then, the initialview layer checks if the map has a baseLayer, finds one and suppose it's ready and attempt to zoom. The zoom works, but at this point the layer widget haven't created the layers resources yet, so the zoomed in feature layer isn't shown.

Quick workaround

Make sure you declare your initialview widget before, which counters the issue.

That's pretty much it. This could be solved more properly with a fix.

Change History (0)

Note: See TracTickets for help on using tickets.