@@ -52,17 +52,17 @@ export class LayerFactory {
52
52
line-cap ✓
53
53
line-color ✓
54
54
line-dasharray ✓
55
- line-gap-width
55
+ line-gap-width ✓
56
56
line-gradient
57
57
line-join ✓
58
- line-miter-limit
59
- line-offset
58
+ line-miter-limit ✓
59
+ line-offset ✓
60
60
line-opacity ✓
61
61
line-pattern
62
- line-round-limit
62
+ line-round-limit ✓
63
63
line-sort-key
64
- line-translate
65
- line-translate-anchor
64
+ line-translate ✓
65
+ line-translate-anchor ✓
66
66
line-width ✓
67
67
visibility
68
68
*/
@@ -105,6 +105,10 @@ export class LayerFactory {
105
105
lineProperties . push ( com . mapbox . mapboxsdk . style . layers . PropertyFactory . lineDasharray ( dashArray ) ) ;
106
106
}
107
107
108
+ if ( propertiesObject [ 'line-gap-width' ] ) {
109
+ lineProperties . push ( com . mapbox . mapboxsdk . style . layers . PropertyFactory . lineGapWidth ( new java . lang . Float ( propertiesObject [ 'line-gap-width' ] ) ) ) ;
110
+ }
111
+
108
112
if ( propertiesObject [ 'line-join' ] ) {
109
113
let property ;
110
114
@@ -125,10 +129,36 @@ export class LayerFactory {
125
129
lineProperties . push ( com . mapbox . mapboxsdk . style . layers . PropertyFactory . lineJoin ( property ) ) ;
126
130
}
127
131
132
+ if ( propertiesObject [ 'line-miter-limit' ] ) {
133
+ lineProperties . push ( com . mapbox . mapboxsdk . style . layers . PropertyFactory . lineMiterLimit ( new java . lang . Float ( propertiesObject [ 'line-miter-limit' ] ) ) ) ;
134
+ }
135
+
136
+ if ( propertiesObject [ 'line-offset' ] ) {
137
+ lineProperties . push ( com . mapbox . mapboxsdk . style . layers . PropertyFactory . lineOffset ( new java . lang . Float ( propertiesObject [ 'line-offset' ] ) ) ) ;
138
+ }
139
+
128
140
if ( propertiesObject [ 'line-opacity' ] ) {
129
141
lineProperties . push ( com . mapbox . mapboxsdk . style . layers . PropertyFactory . lineOpacity ( new java . lang . Float ( propertiesObject [ 'line-opacity' ] ) ) ) ;
130
142
}
131
143
144
+ if ( propertiesObject [ 'line-round-limit' ] ) {
145
+ lineProperties . push ( com . mapbox . mapboxsdk . style . layers . PropertyFactory . lineRoundLimit ( new java . lang . Float ( propertiesObject [ 'line-round-limit' ] ) ) ) ;
146
+ }
147
+
148
+ if ( propertiesObject [ 'line-translate' ] ) {
149
+ const dashArray = Array . create ( 'java.lang.Float' , propertiesObject [ 'line-translate' ] . length ) ;
150
+
151
+ for ( let i = 0 ; i < propertiesObject [ 'line-translate' ] . length ; i ++ ) {
152
+ dashArray [ i ] = new java . lang . Float ( propertiesObject [ 'line-translate' ] [ i ] ) ;
153
+ }
154
+
155
+ lineProperties . push ( com . mapbox . mapboxsdk . style . layers . PropertyFactory . lineTranslate ( dashArray ) ) ;
156
+ }
157
+
158
+ if ( propertiesObject [ 'line-translate-anchor' ] ) {
159
+ lineProperties . push ( com . mapbox . mapboxsdk . style . layers . PropertyFactory . lineTranslateAnchor ( propertiesObject [ 'line-translate-anchor' ] ) ) ;
160
+ }
161
+
132
162
if ( propertiesObject [ 'line-width' ] ) {
133
163
lineProperties . push ( com . mapbox . mapboxsdk . style . layers . PropertyFactory . lineWidth ( new java . lang . Float ( propertiesObject [ 'line-width' ] ) ) ) ;
134
164
}
0 commit comments