Closed jtroe closed 9 years ago
hi @jtroe, you're definitely right that the plugin doesn't expose a public method for manipulating the renderer applied to graphics, but you can alter the renders defined in _setDefaultSymbols() to whatever else you want.
all that said, i think its a viable enhancement. pull requests welcomed!
Added support for geojsonlayer.render = new SimpleRenderer(json);
https://github.com/Esri/geojson-layer-js/pull/22
Closed.
@alaframboise just reminded me that this custom layer inherits from GraphicsLayer and as such, a renderer property is exposed automatically. this is already demonstrated in the sample in commented out code.
geoJsonLayer.renderer = new SimpleRenderer(simpleJson);
i'm going to go ahead and close this issue, but if you'd like to chat about it more, i'd be happy to.
No functionality for custom symbology; all symbology is tied to geometry type.