Infrastructure Map Server General Discussion

Infrastructure Map Server General Discussion

Reply
Active Contributor
emluv
Posts: 45
Registered: ‎01-26-2009
Message 1 of 4 (316 Views)

Fusion Legend Item Off While Displayed in Map???

316 Views, 3 Replies
10-07-2011 11:10 AM

Hello,

 

I have Mapguide 2011 Fusion web map that when the map initially loads it shows the layer in the map, but in the legend it is unchecked. It has to be checked and unchecked a few times to actually reflect chnages in the map.

 

In Studio I have the layer set to initially draw when the map loads as well as the layer to display in the legend. It is like the legend is not recognizing the layer is there until the user check and unchecks the legend.

 

Any insight would be greatly appreciated!!

 

Thanks!:smileyvery-happy:

emluv
Valued Mentor
gluckett
Posts: 373
Registered: ‎10-10-2003
Message 2 of 4 (304 Views)

Re: Fusion Legend Item Off While Displayed in Map???

10-11-2011 09:20 PM in reply to: emluv

In the index.htm page of each of the Fusion Templates, you can add a refresh to the initPanelHandle function

 

var theMap = Fusion.getWidgetById('Map');

theMap.reloadMap();

 

Active Contributor
emluv
Posts: 45
Registered: ‎01-26-2009
Message 3 of 4 (299 Views)

Re: Fusion Legend Item Off While Displayed in Map???

10-12-2011 07:22 AM in reply to: emluv

Thanks Gordon!

 

Is the index.htm file in the \WebServerExtensions\www\fusion\templates\mapguide\aqua folder? I see an index.html file in this folder, is this the one to edit?

 

I appreciate it:smileyhappy:

emluv
Valued Mentor
gluckett
Posts: 373
Registered: ‎10-10-2003
Message 4 of 4 (297 Views)

Re: Fusion Legend Item Off While Displayed in Map???

10-12-2011 07:35 AM in reply to: emluv

Yes, that's the one.  Around line 179 in 

 var initPanelHandler = function() {

 

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community