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

style

Adds a style to a layer. This style will replace any styles that have already been applied using this method and will supercede any styles that have been configured by the MapStyler.

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", "WORLD");

map.usingLayer("COUNTRIES")
    .style({ fillColor: "#0000FF"})
    .update();