Exemplo n.º 1
0
        protected override void RenderRules()
        {
            MapPointRules mapPointRules = this.MapPointLayer.MapPointRules;

            if (mapPointRules != null)
            {
                base.RenderPointRules(mapPointRules);
            }
        }
Exemplo n.º 2
0
        protected override void CreateRules()
        {
            MapPointRules mapPointRules = this.MapPointLayer.MapPointRules;

            if (mapPointRules != null)
            {
                base.CreatePointRules(mapPointRules);
            }
        }
        protected bool HasMarkerRule()
        {
            MapPointRules mapPointRules = this.GetMapPointRules();

            if (mapPointRules == null)
            {
                return(false);
            }
            if (mapPointRules.MapMarkerRule != null)
            {
                return(true);
            }
            return(false);
        }
Exemplo n.º 4
0
        protected override void RenderRules()
        {
            MapPolygonRules mapPolygonRules = this.MapPolygonLayer.MapPolygonRules;

            if (mapPolygonRules != null && mapPolygonRules.MapColorRule != null)
            {
                this.m_polygonColorRuleMapper.RenderPolygonRule(this.m_polygonTemplateMapper);
            }
            MapPointRules mapCenterPointRules = this.MapPolygonLayer.MapCenterPointRules;

            if (mapCenterPointRules != null)
            {
                base.RenderPointRules(mapCenterPointRules);
            }
        }
Exemplo n.º 5
0
        protected override void CreateRules()
        {
            MapPolygonRules mapPolygonRules = this.MapPolygonLayer.MapPolygonRules;

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

            if (mapCenterPointRules != null)
            {
                base.CreatePointRules(mapCenterPointRules);
            }
        }
 protected void CreatePointRules(MapPointRules mapPointRules)
 {
     if (mapPointRules.MapColorRule != null)
     {
         this.m_pointColorRuleMapper = new ColorRuleMapper(mapPointRules.MapColorRule, this, this.GetSymbolManager());
         this.m_pointColorRuleMapper.CreateSymbolRule();
     }
     if (mapPointRules.MapSizeRule != null)
     {
         this.m_pointlSizeRuleMapper = new SizeRuleMapper(mapPointRules.MapSizeRule, this, this.GetSymbolManager());
         this.m_pointlSizeRuleMapper.CreateSymbolRule();
     }
     if (mapPointRules.MapMarkerRule != null)
     {
         this.m_pointMarkerRuleMapper = new MarkerRuleMapper(mapPointRules.MapMarkerRule, this, this.GetSymbolManager());
         this.m_pointMarkerRuleMapper.CreateSymbolRule();
     }
 }
        protected void RenderPointRules(MapPointRules mapPointRules)
        {
            int?        legendSymbolSize   = this.GetLegendSymbolSize();
            Color?      legendSymbolColor  = this.GetLegendSymbolColor();
            MarkerStyle?legendSymbolMarker = this.GetLegendSymbolMarker();

            if (mapPointRules.MapColorRule != null)
            {
                this.m_pointColorRuleMapper.RenderSymbolRule(this.m_pointTemplateMapper, legendSymbolSize, legendSymbolMarker);
            }
            if (mapPointRules.MapSizeRule != null)
            {
                this.m_pointlSizeRuleMapper.RenderSymbolRule(this.m_pointTemplateMapper, legendSymbolColor, legendSymbolMarker);
            }
            if (mapPointRules.MapMarkerRule != null)
            {
                this.m_pointMarkerRuleMapper.RenderPointRule(this.m_pointTemplateMapper, legendSymbolColor, legendSymbolSize);
            }
        }