protected override void CreateRules()
        {
            MapPolygonRules mapPolygonRules = MapPolygonLayer.MapPolygonRules;

            if (mapPolygonRules != null && mapPolygonRules.MapColorRule != null)
            {
                m_polygonColorRuleMapper = new ColorRuleMapper(mapPolygonRules.MapColorRule, this, GetSpatialElementManager());
                m_polygonColorRuleMapper.CreatePolygonRule();
            }
            MapPointRules mapCenterPointRules = MapPolygonLayer.MapCenterPointRules;

            if (mapCenterPointRules != null)
            {
                CreatePointRules(mapCenterPointRules);
            }
        }
 protected void CreatePointRules(MapPointRules mapPointRules)
 {
     if (mapPointRules.MapColorRule != null)
     {
         m_pointColorRuleMapper = new ColorRuleMapper(mapPointRules.MapColorRule, this, GetSymbolManager());
         m_pointColorRuleMapper.CreateSymbolRule();
     }
     if (mapPointRules.MapSizeRule != null)
     {
         m_pointlSizeRuleMapper = new SizeRuleMapper(mapPointRules.MapSizeRule, this, GetSymbolManager());
         m_pointlSizeRuleMapper.CreateSymbolRule();
     }
     if (mapPointRules.MapMarkerRule != null)
     {
         m_pointMarkerRuleMapper = new MarkerRuleMapper(mapPointRules.MapMarkerRule, this, GetSymbolManager());
         m_pointMarkerRuleMapper.CreateSymbolRule();
     }
 }
        protected override void CreateRules()
        {
            MapLineRules mapLineRules = MapLineLayer.MapLineRules;

            if (mapLineRules != null)
            {
                if (mapLineRules.MapColorRule != null)
                {
                    m_lineColorRuleMapper = new ColorRuleMapper(mapLineRules.MapColorRule, this, GetSpatialElementManager());
                    m_lineColorRuleMapper.CreatePathRule();
                }
                if (mapLineRules.MapSizeRule != null)
                {
                    m_lineSizeRuleMapper = new SizeRuleMapper(mapLineRules.MapSizeRule, this, GetSpatialElementManager());
                    m_lineSizeRuleMapper.CreatePathRule();
                }
            }
        }