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.MapPolygonStart(index.ToString(CultureInfo.InvariantCulture.NumberFormat)); base.Initialize(context, index); if (m_useCustomPolygonTemplate != null) { m_useCustomPolygonTemplate.Initialize("UseCustomPolygonTemplate", context); context.ExprHostBuilder.MapPolygonUseCustomPolygonTemplate(m_useCustomPolygonTemplate); } if (m_mapPolygonTemplate != null) { m_mapPolygonTemplate.Initialize(context); } if (m_useCustomCenterPointTemplate != null) { m_useCustomCenterPointTemplate.Initialize("UseCustomPointTemplate", context); context.ExprHostBuilder.MapPolygonUseCustomCenterPointTemplate(m_useCustomCenterPointTemplate); } if (m_mapCenterPointTemplate != null) { m_mapCenterPointTemplate.Initialize(context); } m_exprHostID = context.ExprHostBuilder.MapPolygonEnd(); }