Infrastructure Map Server General Discussion

Infrastructure Map Server General Discussion

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

Fusion Legend Item Off While Displayed in Map???

323 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: 391
Registered: ‎10-10-2003
Message 2 of 4 (311 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 (306 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: 391
Registered: ‎10-10-2003
Message 4 of 4 (304 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
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.