Default drawing color
Hi All
I am trying to change the interim drawing colour, the colour that is displayed whilst digitising a new feature, from the grey colour to a yellow.
I thought that editing the Desktop.json file amd changing the defaultPolygonMarkup polygonfillColor value under the MarkupViewModel would do it, but it hasnt seemed to change anything. Have I missed something?
"id": "MarkupViewModel",
"type": "geocortex.essentialsHtmlViewer.mapping.modules.markup.MarkupViewModel",
"configuration": {
"markupLayerName": "Drawings",
.
.
.
"defaultPolygonMarkup": {
"polygonBorderStyle": "Solid",
"polygonFillStyle": "Solid",
"polygonBorderWidth": 3,
"polygonFillColor": "#FFFF99",
"polygonBorderColor": "#FF4CA0D8"
0
-
Hi Chris,
The change you've made here affects markup. If you have the "Draw" tool on your toolbar, use that to draw a polygon shape. When you finish, the completed shape should reflect the colour you've set with "polygonFillColor".
The Desktop.json file doesn't have configuration options set up for the interim drawing styles. If you'd like to see a configurable option for that, I would recommend posting to the Ideas section so that other users can vote for it.
As a makeshift solution, you may be able to change the styles using custom CSS. For example, I added the following to
C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\SITENAME\Viewers\VIEWERNAME\VirtualDirectory\Resources\Styles\Custom\Desktop.css :#map_graphics_layer path { fill: rgb(255, 255, 0); fill-opacity: 0.25; stroke: rgb(0, 0, 0); stroke-opacity: 0.8; stroke-width: 2 }I think this has the effect that you're looking for, but it also impacts other paths like the one the identify tool draws.
Hope that helps!
Amanda0 -
Thanks Amanda
Just what I was looking for!0
Please sign in to leave a comment.
Comments
2 comments