Example #1
0
        internal void RenderPolygonRule(PolygonTemplateMapper shapeTemplateMapper)
        {
            ShapeRule shapeRule = (ShapeRule)m_coreRule;

            SetRuleLegendProperties(shapeRule);
            SetRuleDistribution(shapeRule);
            shapeRule.ShowInColorSwatch = GetShowInColorScale();
            if (m_mapRule is MapColorRangeRule)
            {
                RenderPolygonColorRangeRule(shapeRule);
            }
            else if (m_mapRule is MapColorPaletteRule)
            {
                RenderPolygonColorPaletteRule(shapeRule);
            }
            else
            {
                RenderPolygonCustomColorRule(shapeRule);
            }
            InitializeCustomColors(shapeRule.CustomColors, shapeTemplateMapper);
        }
 internal PolygonLayerMapper(MapPolygonLayer mapPolygonLayer, MapControl coreMap, MapMapper mapMapper)
     : base(mapPolygonLayer, coreMap, mapMapper)
 {
     m_polygonTemplateMapper = new PolygonTemplateMapper(m_mapMapper, this, MapPolygonLayer);
     m_pointTemplateMapper   = CreatePointTemplateMapper();
 }