internal LineLayerMapper(MapLineLayer mapLineLayer, MapControl coreMap, MapMapper mapMapper)
     : base(mapLineLayer, coreMap, mapMapper)
 {
     if (mapLineLayer.MapLineTemplate != null)
     {
         m_lineTemplateMapper = new LineTemplateMapper(m_mapMapper, this, MapLineLayer);
     }
 }
 private int?GetLegendSize()
 {
     if (m_lineTemplateMapper == null)
     {
         return(LineTemplateMapper.GetDefaultSize(m_mapMapper.DpiX));
     }
     return(m_lineTemplateMapper.GetSize(MapLineLayer.MapLineTemplate, hasScope: false));
 }
Example #3
0
        internal void RenderLineRule(LineTemplateMapper pathTemplateMapper, int?size)
        {
            PathRule pathRule = (PathRule)m_coreRule;

            SetRuleLegendProperties(pathRule);
            SetRuleDistribution(pathRule);
            pathRule.ShowInColorSwatch = GetShowInColorScale();
            if (m_mapRule is MapColorRangeRule)
            {
                RenderLineColorRangeRule(pathRule);
            }
            else if (m_mapRule is MapColorPaletteRule)
            {
                RenderLineColorPaletteRule(pathRule);
            }
            else
            {
                RenderLineCustomColorRule(pathRule);
            }
            InitializePathRule(pathRule, pathTemplateMapper, size);
        }
Example #4
0
 private void InitializePathRule(PathRule pathRule, LineTemplateMapper pathTemplateMapper, int?size)
 {
     InitializeCustomColors(pathRule.CustomColors, pathTemplateMapper);
 }