Skip to main content

Outline colour for polygons using visualisation options

Comments

3 comments

  • Permanently deleted user
    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,

     

    Danny
    0
  • Chris Roberts
    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
  • Permanently deleted user
    Chris, this solved the same problem we were having.  Thanks for posting!
    0

Please sign in to leave a comment.