예제 #1
0
        public void OnMapReady(MapboxMap mapBox)
        {
            nMap = mapBox;
            nMap.SetStyle(Map.mapStyle, this);
            //nMap.SetStyle("mapbox://styles/mapbox/light-v9");
            nMap.UiSettings.CompassEnabled = false;
            nMap.AddOnMapClickListener(this);
            nMap.CameraIdle        += NMap_CameraIdle;
            nMap.CameraMoveStarted += NMap_CameraMoveStarted;
            nMap.CameraMove        += NMap_CameraMove;

            // If cross map has not been assigned a value yet the retry initializations in the next x millisecond
            if (xMap == null)
            {
                return;
            }

            if (xMap.initialCameraUpdate != null)
            {
                updateMapPerspective(xMap.initialCameraUpdate);
            }

            System.Diagnostics.Debug.WriteLine(DateTime.Now.ToString("HH:mm:ss.fff tt") + "[MapboxRenderer]: Ready Ready Ready Ready Ready");
        }