Opened 11 years ago

Closed 11 years ago

#569 closed defect (fixed)

MapGuideViewerApi.js variable scope is not global

Reported by: jng Owned by: madair
Priority: P2 Milestone: Future
Component: Widgets Version: 2.0
Severity: Major Keywords:
Cc: Browser: All
External ID: Operating System: All
state: New

Description

The "global" variables defined in MapGuideViewerApi.js are not truly unique. You can see this when you try to use the Redline widget, which calls into the digitizing functions provided by this module.

Every time the widget digitizes a geometry, the MapGuideViewerApi module will repeatedly add new OpenLayers.Layer.Vector and OpenLayers.Control.DrawFeature objects to the map despite there being a "global" boolean guard that is supposed to protect against this.

Change History (1)

comment:1 by jng, 11 years ago

Resolution: fixed
Status: newclosed

Fixed r2723

Note: See TracTickets for help on using tickets.