I guess I found something here...<br><br>in "fusionSF.js" inside "mapLoaded:function(r)" I have this line of code:<br>this.groupName = o.groups[0].groupName;  //assumes only one group for now<br><br>It is the first time I'm dealing with this fusion code so I'm not very sure about the whole thing.. But I could see that this o.groups has all the groups: first the regular layer groups and after those the base layer groups.. so I changed the code to get the last group:<br>

this.groupName = o.groups[o.groups.length - 1].groupName;  //assumes only one *base layer* group for now<br><br>Well, it works... I havent seen any bad side effects yet.. :)<br><br><br><div class="gmail_quote">On Wed, Jul 18, 2012 at 7:41 PM, Douglas Gardim <span dir="ltr"><<a href="mailto:dgardim@gmail.com" target="_blank">dgardim@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi community,<br><br>I'm using MapGuideEnterprise2011, and something weird is happening to my base layers.<br><br>
I drilled down the problem to this:<br>
<br>We have a BaseMapDefinition with a couple of BaseMapLayers and a few regular MapLayers. In this situation the baselayers work pretty well and the tiled map images are generated gracefully.<br>
<br><MapDefinition ...><br>  ...<br>  <MapLayer>...</MapLayer><br>  <MapLayer>...</MapLayer><br>  ...<br>  <BaseMapDefinition><br>    ...<br>    <BaseMapLayerGroup><br>      ...<br>


      <BaseMapLayer>...</BaseMapLayer><br>      <BaseMapLayer>...</BaseMapLayer><br>      ...<br>    </BaseMapLayerGroup><br>  </BaseMapDefinition><br><br></MapDefinition><br><br>


<br><br>The problem starts when I add a simple empty MapLayerGroup to my MapDefinition. When I try to use this configuration my base layers simply stop working. The MapLayers continue showing normally, but nothing shows up in the BaseMapLayers. The base layers are shown only in the layers list.<br>


<br><MapDefinition ...><br>  ...<br>  <MapLayer>...</MapLayer><br>  <MapLayer>...</MapLayer><br>**<MapLayerGroup><Name>New Layer Group</Name>...</MapLayerGroup>**<br>


  ...<br>  <BaseMapDefinition><br>
    ...<br>    <BaseMapLayerGroup><br>
      ...<br>      <BaseMapLayer>...</BaseMapLayer><br>      <BaseMapLayer>...</BaseMapLayer><br>
      ...<br>    </BaseMapLayerGroup><br>  </BaseMapDefinition><br>
<br></MapDefinition><br><br><br>I found that MapGuide has created a "New Layer Group" directory (the name of the MapLayerGroup!!) inside the \Server\Repositories\TileCache directory, going down the directory tree I see many empty tiled images. It seems like it tried to create a tiled map for my MapLayerGroup instead of the BaseMapLayerGroup.<br>


<br><br><br>I dont believe it's a bug because using MapLayerGroups together with BaseMapLayerGroups seems to be a very common configuration to me.<br>Am I missing something here? Have anyone ever experienced something like this? <br>


<br><br>Thanks in advance!<br>DougG<br><br><br><br><a href="mailto:mapguide-users@lists.osgeo.org" target="_blank"></a>
</blockquote></div><br>