protected override void RenderRules() { MapPointRules mapPointRules = MapPointLayer.MapPointRules; if (mapPointRules != null) { RenderPointRules(mapPointRules); } }
protected override void CreateRules() { MapPointRules mapPointRules = MapPointLayer.MapPointRules; if (mapPointRules != null) { CreatePointRules(mapPointRules); } }
protected bool HasMarkerRule() { MapPointRules mapPointRules = GetMapPointRules(); if (mapPointRules == null) { return(false); } if (mapPointRules.MapMarkerRule != null) { return(true); } return(false); }
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); } }
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 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); } }