NAXAM / mapbox-android-binding

Xamarin binding for MapBox Android SDK
Other
24 stars 15 forks source link

Return type of functions in MarkerOptions are wrong #4

Closed charlenni closed 7 years ago

charlenni commented 7 years ago

MarkerOptions is a builder for Markers. It is derived from BaseMarkerOptions<U extends Marker,T extends BaseMarkerOptions<U,T>> and should return always T, so that the following is possible:

var markerOpts = new MarkerOptions().SetTitle("Title").SetSnippet("Snippet");

This isn't possible, because all functions (SetTitle(), SetSnippet() and so on) return Java.Lang.Object.

charlenni commented 7 years ago

The same for MarkerViewOptions.

tuyen-vuduc commented 7 years ago

Great finding. We will update the binding to correct this.