Mapview Error: Not Enough Arguments Error

Former Member
Former Member

I have tried using the example provided in the Garmin developper page https://developer.garmin.com/connect-iq/connect-iq-faq/how-do-i-use-a-mapview/ but unfortunately, I received the folllowing errors :

Encountered app crash

Error: Not enough Arguments Error

Details: Failed invoking <symbol>

Stack: 

- Initialize()

- getInitialView()

The functions are as follows:

    var mView;

    function initialize(view) {  (This line showing the error)
        BehaviorDelegate.initialize();
        mView = view;
    }
    // Return the initial view of your application here
    function getInitialView() as Array<Views or InputDelegates>? {
        return [ new MapsView(), new MapsDelegate() ] as Array<Views or InputDelegates>; (This line showing error)
    }
Can someone help me with this?