[mapguide-commits] r4543 - sandbox/adsk/2.2gp/Common/MapGuideCommon/MapLayer

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Jan 21 12:23:17 EST 2010


Author: chrisclaydon
Date: 2010-01-21 12:23:16 -0500 (Thu, 21 Jan 2010)
New Revision: 4543

Modified:
   sandbox/adsk/2.2gp/Common/MapGuideCommon/MapLayer/Map.cpp
Log:
Fixes #1241 - Selection not displayed for tiled maps

This submission ensures that when we bulk load identity properties for layers in the map, we include the base map layers as well as the dynamic layers. This allows the creation of selection filters to succeed for the base map layers, which is required for rendering the selection overlay.

Modified: sandbox/adsk/2.2gp/Common/MapGuideCommon/MapLayer/Map.cpp
===================================================================
--- sandbox/adsk/2.2gp/Common/MapGuideCommon/MapLayer/Map.cpp	2010-01-20 21:32:05 UTC (rev 4542)
+++ sandbox/adsk/2.2gp/Common/MapGuideCommon/MapLayer/Map.cpp	2010-01-21 17:23:16 UTC (rev 4543)
@@ -323,21 +323,6 @@
                 rtLayer->SetGroup(itKg->second);
             }
         }
-
-        Ptr<MgSiteConnection> siteConn;
-        if (m_siteConnection.p != NULL)
-        {
-            siteConn = SAFE_ADDREF((MgSiteConnection*)m_siteConnection);
-        }
-        else
-        {
-            Ptr<MgUserInformation> userInfo = m_resourceService->GetUserInfo();
-            siteConn = new MgSiteConnection();
-            siteConn->Open(userInfo);
-        }
-        Ptr<MgFeatureService> featureService = dynamic_cast<MgFeatureService*>(siteConn->CreateService(MgServiceType::FeatureService));
-
-        BulkLoadIdentityProperties(featureService);
     }
 
     //done with this list
@@ -405,6 +390,22 @@
         }
     }
 
+    Ptr<MgSiteConnection> siteConn;
+    if (m_siteConnection.p != NULL)
+    {
+        siteConn = SAFE_ADDREF((MgSiteConnection*)m_siteConnection);
+    }
+    else
+    {
+        Ptr<MgUserInformation> userInfo = m_resourceService->GetUserInfo();
+        siteConn = new MgSiteConnection();
+        siteConn->Open(userInfo);
+    }	
+    // Load identity properties
+    Ptr<MgFeatureService> featureService = dynamic_cast<MgFeatureService*>(siteConn->CreateService(MgServiceType::FeatureService));
+    BulkLoadIdentityProperties(featureService);
+
+
     // build the sorted list of finite display scales
     SORTEDSCALES sortedScales;
     DisplayScaleCollection* displayScales = mdef->GetFiniteDisplayScales();



More information about the mapguide-commits mailing list