<%= name %> <% if (prop.function == "interpolated" ) { %><% } %> <% if (prop.function == "piecewise-constant" ) { %><% } %> <% if (prop.transition) { %><% } %>
<%= prop.required ? 'Required' : 'Optional' %> <% if (prop.type && prop.type !== '*') { %><%= prop.type %>.<% } %> <% if (prop.values) { %> One of <%= _(prop.values).map(function(opt) { return '' + opt + '' }).join(', ') %>. <% } %> <% if (prop.units) { %> Units in <% if (typeof prop.units === 'object') { %> <%= _(prop.units).map(function(opt) { return '' + opt + '' }).join(', ') %>. <% } else { %> <%= prop.units %>. <% } %> <% } %> <% if (prop.default || prop.default === false || prop.default === 0) { %> Defaults to <%= prop.default %>. <% } %> <% if (prop.requires) { %> <%= _(prop.requires).map(function(req) { if (typeof req === 'string') { return 'Requires ' + req + '.'; } else { if (req['!']) { return 'Disabled by ' + req['!'] + '.'; } else { return 'Requires ' + _.pairs(req)[0][0] + ' = ' + _.pairs(req)[0][1] + '.'; } } }).join(' ') %> <% } %>
<% if (prop.doc) { %> {% capture prop_doc %}<%= prop.doc %>{% endcapture %}
{{prop_doc | markdownify}}
<% } %> <% if (prop.example) { %>
{% highlight json %} <%= '"' + name + '": ' + JSON.stringify(prop.example, null, 2) %> {% endhighlight %}
<% } %> <% if (prop['sdk-support']) { var support = function(type, sdk) { var support = prop['sdk-support'][type]; if (!support) return 'Not yet supported'; support = support[sdk]; if (support === undefined) return 'Not yet supported'; return '>= ' + support; } %>
<% if (prop['property-function']) { %> <% } %>
SDK Support Mapbox GL JS iOS SDK Android SDK
Base support <%- support('basic', 'js') %> <%- support('basic', 'ios') %> <%- support('basic', 'android') %>
Data-driven styling <%- support('property-function', 'js') %> <%- support('property-function', 'ios') %> <%- support('property-function', 'android') %>
<% } %>