internal void Render(MapLine mapLine, Path corePath, bool hasScope) { bool flag = UseCustomTemplate(mapLine, hasScope); MapLineTemplate mapLineTemplate = (!flag) ? MapLineLayer.MapLineTemplate : mapLine.MapLineTemplate; RenderLineTemplate(mapLineTemplate, corePath, !flag && m_lineLayerMapper.HasColorRule(corePath) && hasScope, !flag && m_lineLayerMapper.HasSizeRule(corePath) && hasScope, hasScope); }
private bool UseCustomTemplate(MapLine mapLine, bool hasScope) { if (mapLine == null) { return(false); } bool result = false; ReportBoolProperty useCustomLineTemplate = mapLine.UseCustomLineTemplate; if (useCustomLineTemplate != null) { if (!useCustomLineTemplate.IsExpression) { result = useCustomLineTemplate.Value; } else if (hasScope) { result = mapLine.Instance.UseCustomLineTemplate; } } return(result); }
internal MapLineInstance(MapLine defObject) : base(defObject) { m_defObject = defObject; }
private void RenderLineTemplate(MapLine mapLine, Path path, bool hasScope) { m_lineTemplateMapper.Render(mapLine, path, hasScope); }