addFeature

Add a GeoJSON Feature to this DataRenderer.

For convenience you can add a block to style your feature on the fly. For example:

dataRenderer.addFeature(myFeature) {
fillColor = "#f00"
strokeColor = "#f00"
strokeWeight = 2.0
}

Return

a DataBoundFeature linking the Feature with this DataRenderer.

Parameters

feature

a GeoJSON Feature to draw.

action

a block to style the feature before drawing it.