Hexagon Geospatial
MENU

Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Contributor
Posts: 37
Registered: ‎11-11-2015
Accepted Solution

Default Styles in Geospatial Portal

Can we set the defaults in style object while creating a feature class, see below code -

 

featureClassDefinitions: [{
featureClassId: options.featureClassId,
fields: [],
geometryType: Intergraph.WebSolutions.Core.WebClient.Platform.Common.GeometryType.GraphicsText,
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"},
"bold": false,
"color": null,
"horizontalAlignment": 0,
"imageHeight": 0,
"imageUrl": null,
"imageWidth": 0,
"italic": false,
"name": "Text styles",
"rotation": 0,
"rule": null,
"size": 0,
"styleCollectionType": 6,
"styles": [{
"bold": false,
"color": "#000000",
"horizontalAlignment": 1,
"imageHeight": 0,
"imageUrl": null,
"imageWidth": 0,
"italic": false,
"name": "Text style",
"rotation": 0,
"rule": null,
"size": 30,
"styleCollectionType": 0,
"styles": [],
"subtype": 0,
"translucency": 0,
"type": 6,
"underline": false,
"verticalAlignment": 1,
"visible": true,
"width": 0
}],
"subtype": 0,
"translucency": 0,
"type": 0,
"underline": false,
"verticalAlignment": 0,
"visible": false,
"width": 0

}
}]

Contributor
Posts: 37
Registered: ‎11-11-2015

Re: Default Styles in Geospatial Portal

On continuation we observed that, we can set the defaults in style object while creating a feature class.

Do you need immediate support?
Please submit a Ticket through our
Development Ticket Portal.