diff options
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/property.java.ejs')
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/property.java.ejs | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/property.java.ejs b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/property.java.ejs index e734a9ff11..de5330bd9c 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/property.java.ejs +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/property.java.ejs @@ -14,8 +14,15 @@ import java.lang.annotation.RetentionPolicy; */ public abstract class Property<T> { - //visibility + //VISIBILITY: Whether this layer is displayed. + + /** + * The layer is shown. + */ public static final String VISIBLE = "visible"; + /** + * The layer is hidden. + */ public static final String NONE = "none"; @StringDef({ @@ -26,13 +33,17 @@ public abstract class Property<T> { public @interface VISIBILITY {} <% for (const property of properties) { -%> - //<%- property.name %> -<% for (const value of property.values) { -%> + //<%- snakeCaseUpper(property.name) %>: <%- property.doc %> + +<% for (const value in property.values) { -%> + /** + * <%- property.values[value].doc %> + */ public static final String <%- snakeCaseUpper(property.name) %>_<%- snakeCaseUpper(value) %> = "<%- value %>"; <% } -%> @StringDef({ - <% for (const value of property.values) { -%> + <% for (const value of Object.keys(property.values)) { -%> <%- snakeCaseUpper(property.name) %>_<%- snakeCaseUpper(value) %>, <% } -%> }) |