Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
The documentation state that we should use the official MapBox website documentation to use the Xamarin SDK.
The implementation seems to be quite different from the original library.
I'm trying to extends the CalloutView base class but whatever i'm trying this is crashing the app.
Could you provide an example on how to use it ?
Experiencing the same crash as Yves when trying to instantiate a CalloutView sub-class:
critical: at <unknown> <0xffffffff>
critical: at (wrapper managed-to-native) ApiDefinition.Messaging.IntPtr_objc_msgSendSuper (intptr,intptr) <IL 0x0002a, 0xffffffff>
critical: at Mapbox.CalloutView..ctor () <IL 0x00067, 0x00183>
critical: at EoT.MyCallout.ctor (TarkDrama.Actor) [0x00000]
Note that the MapBox SDK indicates that GetCalloutView implementation should return a UIView which implements the MGLCalloutView protocol. In the Xamarin implementation, CalloutView is a class derived from NSObject, so it can't be a UIView.
As best I can tell, the CalloutView protocol derives from NSObject (according to the header files). In the current binding, we don't generate an interface for CalloutView, so we should be generating ICalloutView which you could then implement in your own UIView subclass (eg: `public class MyCalloutView : UIView, ICalloutView` and then `GetCalloutView` should return `ICalloutView` (and there's a couple other methods that should use ICalloutView instead of CalloutView.
We will fix this in the next release.