Tell me more ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm creating an add-in button that will allow the user to create a cloropleth map from a layer they choose. I create a classBreaksRenderer, then I can set it's colorRamp, for example:

myRenderer.setColorRamp("White to Black"); but this only changes the color ramp in the properties dialog, and does not change the actual map. I can change the actual map using the .setSymbol method, for example: myRenderer.setSymbol(0, myIsymbol1);

Why doesn't the .setColorRamp method change the symbols and the map layer, as it does when you click on the colorramp and change it in the property dialog in ArcMap? Is there any way to do the same thing programatically?

Also, myRenderer.setColorRamp(); seems to fail if you use a multi-part color ramp. Why? Is this a bug?

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.