Skip to content

Commit 3633d62

Browse files
committed
fix: interface change
1 parent e27f68e commit 3633d62

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

index.android.ts

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -43,34 +43,23 @@ export function disableDebug(): void {
4343
debug = debugNull;
4444
}
4545

46-
47-
const CustomClusterItem = java.lang.Object.extend({
48-
49-
interfaces: [ClusterItem],
50-
51-
marker: null, // will be attached manually later
52-
46+
const CustomClusterItem = ClusterItem.extend({
47+
marker: null,
5348
init: function () { },
54-
5549
getMarker: function () {
56-
return this.marker;
50+
return this.marker;
5751
},
58-
5952
getPosition: function () {
60-
return this.marker.position.android;
53+
return this.marker.position.android;
6154
},
62-
6355
getTitle: function () {
64-
return this.marker.title;
56+
return this.marker.title;
6557
},
66-
6758
getSnippet: function () {
68-
return this.marker.snippet;
59+
return this.marker.snippet;
6960
},
70-
7161
});
7262

73-
7463
const CustomClusterManager = ClusterManager.extend({
7564

7665
mapView: null, // will be attached manually later

0 commit comments

Comments
 (0)