File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { MarkerOptions, MarkerStyleBuilderOptions } from './marker';
55import { BaseBillboardVectorElement , BillboardStyleBuilder } from './index.android' ;
66import { BillboardOrientation , BillboardScaling } from '.' ;
77import { Geometry } from '../geometry' ;
8+ import { styleBuilderProperty } from './index.common' ;
89
910export class MarkerStyleBuilder extends BillboardStyleBuilder < com . carto . styles . MarkerStyleBuilder , MarkerStyleBuilderOptions > {
1011 createNative ( options : MarkerStyleBuilderOptions ) {
@@ -30,6 +31,13 @@ export class MarkerStyleBuilder extends BillboardStyleBuilder<com.carto.styles.M
3031}
3132
3233export class Marker extends BaseBillboardVectorElement < com . carto . vectorelements . Marker , MarkerOptions > {
34+ @styleBuilderProperty color : Color | string ;
35+ @styleBuilderProperty bitmap : string ;
36+ @styleBuilderProperty size : number ;
37+ @styleBuilderProperty width : number ;
38+ @styleBuilderProperty clickSize : number ;
39+ @styleBuilderProperty anchorPointX : number ;
40+ @styleBuilderProperty anchorPointY : number ;
3341 createNative ( options : MarkerOptions ) {
3442 const style = this . buildStyle ( ) ;
3543 let result : com . carto . vectorelements . Marker ;
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { MarkerOptions, MarkerStyleBuilderOptions } from './marker';
55import { BillboardOrientation , BillboardScaling , BillboardStyleBuilder } from '.' ;
66import { BaseBillboardVectorElement } from './index.ios' ;
77import { Geometry } from '../geometry' ;
8+ import { styleBuilderProperty } from './index.common' ;
89
910export class MarkerStyleBuilder extends BillboardStyleBuilder < NTMarkerStyleBuilder , MarkerStyleBuilderOptions > {
1011 createNative ( options : MarkerStyleBuilderOptions ) {
@@ -28,6 +29,13 @@ export class MarkerStyleBuilder extends BillboardStyleBuilder<NTMarkerStyleBuild
2829}
2930
3031export class Marker extends BaseBillboardVectorElement < NTMarker , MarkerOptions > {
32+ @styleBuilderProperty color : Color | string ;
33+ @styleBuilderProperty bitmap : string ;
34+ @styleBuilderProperty size : number ;
35+ @styleBuilderProperty width : number ;
36+ @styleBuilderProperty clickSize : number ;
37+ @styleBuilderProperty anchorPointX : number ;
38+ @styleBuilderProperty anchorPointY : number ;
3139 createNative ( options : MarkerOptions ) {
3240 const style = this . buildStyle ( ) ;
3341 let result : NTMarker ;
You can’t perform that action at this time.
0 commit comments