JS API
Map Object
QueryEngine Object
Layer Object
Feature Object
Query Object
GeoJson Function Library (Experimental)

style

Sets the style of the single feature.

Parameters

Name Required Description
style Yes An object defining the style. All properties are optional and may be left out.
- fillColor (The fill color of the feature)
- strokeColor (The stroke color of the feature)
- strokeWidth (The width of the stroke of the feature)
- size (Applies to point layers and is the diameter of the point)

Example

var map = new Mapzania.Map("map-div", "AFRICA", function () {

map.usingLayer("COUNTRIES")
	.usingFeature("107")
		.style({ fillColor: "#FF0000"})
		.update();