Is it possible to edit current position data within a widget itself?

I have some code that gets my current lat long position from gps. I would like to add to my widget the functionality to modify that position data by 1 or -1 by pressing some on screen arrow buttons (up down left right). I do not know how to do this so anyway in help would be much appreciated. 

thankyou

P.S (working with maximum ConnectiQ 3.0)

  • I'm getting a no viable alternative to view error. Also how do I specify different regions of the screen as tap1, tap 2 etc?

    sorry for all the questions.

    This is the delegate code:
    using Toybox.Attention;
    using Toybox.WatchUi;
    using Toybox.Position;

    class MapWidgetDelegate extends WatchUi.BehaviorDelegate {

    var posnInfo = null;

        } function initialize() {
            WatchUi.BehaviorDelegate.initialize();
        }
        // Push a text picker if the up button is pressed
        // or the screen receives a tap.

        function onTap1() {
            Position.enableLocationEvents(Position.LOCATION_CONTINUOUS, method(:onPosition));
            WatchUi.requestUpdate;
            return true;
        }

        function onTap2() {
            view,lat=view.lat+1.0;
            WatchUi.requestUpdate;
           }
       
        function onTap3() {
             view,lon=view.lon+1.0;
             WatchUi.requestUpdate;
            }

        function onTap4() {
           view,lat=view.lat-1.0;
           WatchUi.requestUpdate;
            }
           
        function ontap5() {
         view,lon=view.lon-1.0;
         WatchUi.requestUpdate;
           
            }
           
      function onPosition(info) {
            positionView.setPosition(info);
            }
           
            function getInitialView() {
        del = new MapWidgetDelegate();
        positionView = new MapWidgetView();
       
          return [ positionView, del ];
         
          }