Infrastructure Map Server General Discussion

Infrastructure Map Server General Discussion

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

Fusion Legend Item Off While Displayed in Map???

329 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: 426
Registered: ‎10-10-2003
Message 2 of 4 (317 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 (312 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: 426
Registered: ‎10-10-2003
Message 4 of 4 (310 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() {

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.