Outline colour for polygons using visualisation options
Hi All
When when using the new visualisation options in HTML5 2.7.1 to apply a colour to a polygon I have noticed that the outline colour seems to be differnet from the symbol colour choosen, it almost seems to have a default transparency applied. Is this set somewhere in the desktop.js file? I cant seem to locate where this is being set. If so can it be changed so that there is no transparency?
I have added a "no fill" style (which works well) and what I would like is that the user picks the desired colour, sets the fill style to none and the Border/Boundary is the colour that they selected from the picker ... not a washed out version as it current appears to be.
Cheers
0
-
Hi Chris,
I don't think this is possible currently, but it sounds like what you are looking for will be available in version 2.8 of the HTML5 viewer. Have a look at the road ahead recording video here (https://support.geocortex.com/essentialsGSCForum?sub-nav=forum&main-nav=essentials&feedtype=SINGLE_QUESTION_DETAIL&dc=Announcements&criteria=OPENQUESTIONS&id=90660000000PE6pAAG) for a demo.
I hope that helps!
Thanks,
Danny0 -
Ok I think I found something ... In the mapping.infrastructure.js file under the C:\inetpub\wwwroot\viewername\Resources\Compiled, I changed the following:
-1+1;var m=new esri.symbol.SimpleLineSymbol;if(this.viewModel.noFill.get()&&this.viewModel.noMarker.get()||!this.viewModel.noMarker.get()&&("cross"===b||"x"===b))m.setColor(a);else if(this.viewModel.config.selectOutlineColor)m.setColor(esri.Color.fromHex(this.viewModel.outlineColors[0].toHex()));else{var q=new g.SymbolColor(a.toHex());0.7<=q.value?m.setColor(esri.Color.fromHex(q.darken(0.5).toHex())):m.setColor(esri.Color.fromHex(q.lighten(0.9).toHex()))}m.setStyle(c);m.setWidth(k);c=new esri.symbol.SimpleMarkerSymbol;
To:
-1+1;var m=new esri.symbol.SimpleLineSymbol;if(this.viewModel.noFill.get()&&this.viewModel.noMarker.get()||!this.viewModel.noMarker.get()&&("cross"===b||"x"===b))m.setColor(a);else if(this.viewModel.config.selectOutlineColor)m.setColor(esri.Color.fromHex(this.viewModel.outlineColors[0].toHex()));else{var q=new g.SymbolColor(a.toHex());0.7<=q.value?m.setColor(esri.Color.fromHex(q.darken(0).toHex())):m.setColor(esri.Color.fromHex(q.lighten(0).toHex()))}m.setStyle(c);m.setWidth(k);c=new esri.symbol.SimpleMarkerSymbol;
This seemed to now ensure that the outline of the polygon is now the same as the colour chosen, without any transparency.0 -
Chris, this solved the same problem we were having. Thanks for posting! 0
Please sign in to leave a comment.
Comments
3 comments