09-20-2017 12:05 AM
Can we update fontFamily using DynamciStyles for Text type geometry? We have identifed a way to update, see below. Please suggest if you have any better option other than this.
$GP.dynamicStyles.register({ featureClassId: "FeatureClass1",
default: function (feature) {
var style = {"defaults":{"boundsColor": "#000000","boundsTranslucency": 0,"boundsWidth": 1, "cursor": "inherit","fillColor": "#aaaaaa","fillTranslucency": 0,"fontBold": false,"fontFamily": "Wingdings","fontFillColor": "#000000", "fontFillTranslucency": 0,"fontItalic": false,"fontRotation": 0,"fontSize": 7,"fontStrokeColor": "#000000","fontStrokeOpacity": 0,"fontStrokeWidth": 0,"fontUnderline": false,"fontWeight": 10,"imageBoundsWidth": 0,"lineColor": "#000000","lineTranslucency": 0,"lineWidth": 1,"maskFontFillColor": "#FFFFFF","maskFontFillOpacity": 0.3,"maskFontStrokeColor": "#FFFFFF","maskFontStrokeOpacity": 0.5,"maskFontStrokeWidth": "0.5ex","pointColor": "#000000","pointSize": 3,"pointTranslucency": 0,"pointerEvents": "visiblePainted","strokeDashstyle": "solid","strokeLinecap": "round"},"color": "#008000","name": "Red dot","size": 20,"underline": false};
return {"style": style, defaultStyleName: "none",styleType: "Intergraph.WebSolutions.Core.WebClient.Platform.Style.TextStyle"}}});
Solved! Go to Solution.
11-06-2017 10:47 PM
This apporach is working for us.