protected override void OnCreate(Android.OS.Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Create package manager folder (Platform-specific)
            var packageFolder = new File(GetExternalFilesDir(null), "packages");

            if (!(packageFolder.Mkdirs() || packageFolder.IsDirectory))
            {
                Log.Fatal("Could not create package folder!");
            }

            // Copy bundled tile data to file system, so it can be imported by package manager
            string importPackagePath = new File(GetExternalFilesDir(null), "world_ntvt_0_4.mbtiles").AbsolutePath;

            using (var input = Assets.Open("world_ntvt_0_4.mbtiles")) {
                using (var output = new System.IO.FileStream(importPackagePath, System.IO.FileMode.Create)) {
                    input.CopyTo(output);
                }
            }

            // Initialize map
            string downloadArea = "bbox(-0.8164,51.2382,0.6406,51.7401)"; // London (about 30MB)
            string downloadId   = "EE";                                   // one of ID-s from https://developer.nutiteq.com/guides/packages

            // decice what to download offline
            var toBeDownloaded = downloadId;

            MapSetup.InitializePackageManager(packageFolder.AbsolutePath, importPackagePath, mapView, toBeDownloaded);
        }
        protected override void OnCreate(Android.OS.Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            /// Set online base layer
            var baseLayer = new NutiteqOnlineVectorTileLayer("nutibright-v2a.zip");

            mapView.Layers.Add(baseLayer);

            MapSetup.AddMapOverlays(mapView);
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // GLKViewController-specific parameters for smoother animations
            ResumeOnDidBecomeActive  = false;
            PreferredFramesPerSecond = 60;

            // Register license
            Nutiteq.Utils.Log.ShowError = true;
            Nutiteq.Utils.Log.ShowWarn  = true;
            Nutiteq.Utils.Log.ShowDebug = true;
            Nutiteq.Ui.MapView.RegisterLicense("XTUM0Q0ZRQytoU2xnd0MrZ2kvV0VhUmlWVGYxK0xsbDJNd0lWQUt6Z245R1F5NW95RXJ5WndoejBNcGpDdGpSZgoKcHJvZHVjdHM9c2RrLXhhbWFyaW4taW9zLTMuKgpidW5kbGVJZGVudGlmaWVyPWNvbS5udXRpdGVxLmhlbGxvbWFwLnhhbWFyaW4Kd2F0ZXJtYXJrPW51dGl0ZXEKdXNlcktleT0yYTllOWY3NDYyY2VmNDgxYmUyYThjMTI2MWZlNmNiZAo=");


            // Create package manager folder (Platform-specific)
            var paths       = NSSearchPath.GetDirectories(NSSearchPathDirectory.ApplicationSupportDirectory, NSSearchPathDomain.User);
            var packagesDir = paths [0] + "packages";

            NSFileManager.DefaultManager.CreateDirectory(packagesDir, true, null);


            // Initialize map
            string downloadArea = "bbox(-0.8164,51.2382,0.6406,51.7401)";             // London (about 30MB)
//			string downloadId = "EE"; // one of ID-s from https://developer.nutiteq.com/guides/packages
//
            // Decide what to download offline
            var    toBeDownloaded    = downloadArea;
            string importPackagePath = AssetUtils.CalculateResourcePath("world_ntvt_0_4.mbtiles");
            //	MapSetup.InitializePackageManager (packagesDir, importPackagePath, Map, toBeDownloaded);

            /// Online vector base layer
            var baseLayer = new NutiteqOnlineVectorTileLayer("nutibright-v2a.zip");

            /// Set online base layer
            Map.Layers.Add(baseLayer);

            MapSetup.AddMapOverlays(Map);

            var json = System.IO.File.ReadAllText(AssetUtils.CalculateResourcePath("capitals_3857.geojson"));


            //	MapSetup.addJosnLayer (Map, json);
        }
        protected override void OnCreate(Android.OS.Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Set online base layer
            var baseLayer = new NutiteqOnlineVectorTileLayer("nutibright-v2a.zip");

            mapView.Layers.Add(baseLayer);

            // read json from assets and add to map
            string json;

            using (System.IO.StreamReader sr = new System.IO.StreamReader(Assets.Open("capitals_3857.geojson")))
            {
                json = sr.ReadToEnd();
            }

            MapSetup.addJosnLayer(mapView, json);
        }