Opened 15 years ago

Closed 15 years ago

#289 closed enhancement (fixed)

Dynamic loading of scripts for commercial map layer

Reported by: liuar Owned by: zjames
Priority: P2 Milestone: Future
Component: Core Version: SVN
Severity: Major Keywords:
Cc: Browser: All
External ID: Operating System: All
state: New

Description

In order to load the scripts for commercial map layers on the fly, users could add commercial scripts in the Extension section of the ApplicationDefinition and load thoese scripts dynamically. So that the user needn't to modify all the templates to support commercial map layers. To load those scripts on demand without break current architecture of Fusion code. The best approch is adding them in Fusion.js.

Attachments (4)

fusion.js (44.8 KB ) - added by liuar 15 years ago.
LoadCommercialScripts.patch (3.1 KB ) - added by liuar 15 years ago.
LoadCommercialScripts2.patch (3.3 KB ) - added by liuar 15 years ago.
LoadCommercialScripts3.patch (3.2 KB ) - added by liuar 15 years ago.

Download all attachments as: .zip

Change History (7)

by liuar, 15 years ago

Attachment: fusion.js added

by liuar, 15 years ago

Attachment: LoadCommercialScripts.patch added

comment:1 by zjames, 15 years ago

Owner: changed from liuar to zjames
Status: newassigned

Arthur,

We reviewed the patch and unfortunately it needs some modification before we can put it in trunk because it makes an assumption that will break many applications. If the ApplicationDefinition is not stored in the repository or the Fusion application uses MapServer instead of MapGuide, this patch will cause a failure.

If you can make modifications so that the addition is entirely skipped in those cases, then we can apply it.

by liuar, 15 years ago

comment:2 by liuar, 15 years ago

Hi Zak,

I uploaded a patch which could also get the commercial scripts from ApplicationDefinition.xml.

Arthur

by liuar, 15 years ago

comment:3 by zjames, 15 years ago

Resolution: fixed
Status: assignedclosed
Version: 1.1.1SVN

In [1899] Applied liuar's latest patch which doesn't attempt to load apis from the ApplicationDefinition unless it's stored in a MapGuide repository.

Note: See TracTickets for help on using tickets.