• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk MapGuide Enterprise

    Reply
    Active Contributor
    Posts: 45
    Registered: ‎01-26-2009

    Fusion Legend Item Off While Displayed in Map???

    252 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
    Please use plain text.
    Mentor
    Posts: 255
    Registered: ‎10-10-2003

    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();

     

    Please use plain text.
    Active Contributor
    Posts: 45
    Registered: ‎01-26-2009

    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
    Please use plain text.
    Mentor
    Posts: 255
    Registered: ‎10-10-2003

    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() {

     

    Please use plain text.