internal override void Initialize(InitializationContext context)
 {
     context.ExprHostBuilder.MapPolygonLayerStart(base.Name);
     base.Initialize(context);
     if (m_mapPolygonRules != null)
     {
         m_mapPolygonRules.Initialize(context);
     }
     if (m_mapCenterPointRules != null)
     {
         m_mapCenterPointRules.Initialize(context);
     }
     if (base.MapDataRegionName == null)
     {
         if (m_mapPolygonTemplate != null)
         {
             m_mapPolygonTemplate.Initialize(context);
         }
         if (m_mapCenterPointTemplate != null)
         {
             m_mapCenterPointTemplate.Initialize(context);
         }
         if (m_mapPolygons != null)
         {
             for (int i = 0; i < m_mapPolygons.Count; i++)
             {
                 m_mapPolygons[i].Initialize(context, i);
             }
         }
     }
     m_exprHostID = context.ExprHostBuilder.MapPolygonLayerEnd();
 }
 internal override void Initialize(InitializationContext context, int index)
 {
     context.ExprHostBuilder.MapPointStart(index.ToString(CultureInfo.InvariantCulture.NumberFormat));
     base.Initialize(context, index);
     if (m_useCustomPointTemplate != null)
     {
         m_useCustomPointTemplate.Initialize("UseCustomPointTemplate", context);
         context.ExprHostBuilder.MapPointUseCustomPointTemplate(m_useCustomPointTemplate);
     }
     if (m_mapPointTemplate != null)
     {
         m_mapPointTemplate.Initialize(context);
     }
     m_exprHostID = context.ExprHostBuilder.MapPointEnd();
 }