Problem with MKPolylineRendererMBS

Hello,

I am having an issue with the MBS MapKit plugin. I get an NSExceptionMBS with either of the two lines. If I comment out both lines of code, I no longer get any exceptions, but the line does not appear. Any thoughts would be very much appreciated.

Thanks in advance

MacBook Pro Intel running macOS Sonoma 14.7.8

Xojo 2025 r2.1

MBS Plugins 241 - Last release I can use with my license

@Christian_Schmitz Any idea or solution ?

Sorry, this exception doesn’t make sense here as the class does have this method declared. In the next days I may have time to try to reproduce it.

strokeColor is a property available to MKOverlayPathRenderer. Looks like you incidentally included it in its super class.

I made a test with current plugins:

Var points() As MKMapPointMBS
points.Add new MKMapPointMBS(1,1)
points.Add New MKMapPointMBS(2,2)
var overlay as new MKPolylineMBS(points)

Var polylineRenderer As New MKPolylineRendererMBS(overlay)
// Customize the line appearanc

polylineRenderer.strokeColor = NSColorMBS.blueColor
polylineRenderer.lineWidth = 3

Break

No exception here. Can you compare what is different?
And maybe update the plugin to try current version?