Opened 13 years ago

Closed 13 years ago

#1886 closed defect (fixed)

Maestro API - Can't Open (to Edit) Runtime Map with Base Layers

Reported by: crispinatime Owned by: jng
Priority: high Milestone: Maestro-4.0
Component: Maestro Version: 2.1.0
Severity: major Keywords:
Cc: External ID:

Description

When re-opening a previously saved RuntimeMap containing Base Layers there is an iterator across RuntimeMapLayers that always tries to set a .Visible. Unfortunately this property is designed to throw an exception for base layers and the internal calls need to be safer.

I added an:

if (this.Type != kbaseMap)

around three instances of setting the visibility in "RuntimeMapLayer.cs" at/around lines 146, 722 and 764.

There may be a better way of handling this.

Change History (1)

comment:1 by jng, 13 years ago

Resolution: fixed
Status: newclosed

Fixed r6338

Note: See TracTickets for help on using tickets.