コード例 #1
0
        protected override void RenderRules()
        {
            MapPointRules mapPointRules = MapPointLayer.MapPointRules;

            if (mapPointRules != null)
            {
                RenderPointRules(mapPointRules);
            }
        }
コード例 #2
0
        protected override void CreateRules()
        {
            MapPointRules mapPointRules = MapPointLayer.MapPointRules;

            if (mapPointRules != null)
            {
                CreatePointRules(mapPointRules);
            }
        }
コード例 #3
0
        protected bool HasMarkerRule()
        {
            MapPointRules mapPointRules = GetMapPointRules();

            if (mapPointRules == null)
            {
                return(false);
            }
            if (mapPointRules.MapMarkerRule != null)
            {
                return(true);
            }
            return(false);
        }
コード例 #4
0
        protected override void RenderRules()
        {
            MapPolygonRules mapPolygonRules = MapPolygonLayer.MapPolygonRules;

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

            if (mapCenterPointRules != null)
            {
                RenderPointRules(mapCenterPointRules);
            }
        }
コード例 #5
0
        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);
            }
        }
コード例 #6
0
 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();
     }
 }
コード例 #7
0
        protected void RenderPointRules(MapPointRules mapPointRules)
        {
            int?        legendSymbolSize   = GetLegendSymbolSize();
            Color?      legendSymbolColor  = GetLegendSymbolColor();
            MarkerStyle?legendSymbolMarker = GetLegendSymbolMarker();

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