Skip to content

Commit ad55944

Browse files
committed
chore: refactoring and pass native object
1 parent d483ea9 commit ad55944

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/ui-carto/layers/vector.android.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ export abstract class BaseVectorTileLayer<T extends com.carto.layers.VectorTileL
114114
position = projection.fromWgs84(dataSourceProjection.toWgs84(position));
115115
}
116116
const geoFeature = {
117+
feature,
117118
id: info.getFeatureId(),
118119
layer: info.getFeatureLayerName(),
119120
_nativeGeometry: geometry,
@@ -127,7 +128,7 @@ export abstract class BaseVectorTileLayer<T extends com.carto.layers.VectorTileL
127128
return this._parsedGeometry;
128129
},
129130
get _properties() {
130-
return info.getFeature().getProperties().toString();
131+
return feature.getProperties().toString();
131132
},
132133
get properties() {
133134
if (!this._parsedProperties) {

src/ui-carto/layers/vector.ios.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ export class NTVectorTileEventListenerImpl extends NTVectorTileEventListener {
117117
position = projection.fromWgs84(dataSourceProjection.toWgs84(position));
118118
}
119119
const geoFeature = {
120+
feature,
120121
id: info.getFeatureId(),
121122
layer: info.getFeatureLayerName(),
122123
_nativeGeometry: geometry,

0 commit comments

Comments
 (0)