1
Vote

I cant get satellite map provider

description

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using GMap.NET.MapProviders;
using GMap.NET;


namespace ISR
{
public partial class Form1 : Form
{

    public Form1()
    {
        InitializeComponent();
    }

    private void button1_Click(object sender, EventArgs e)
    {
        gMapControl1.MapProvider = GMap.NET.MapProviders.GoogleSatelliteMapProvider.Instance;
        GMap.NET.GMaps.Instance.Mode = GMap.NET.AccessMode.ServerAndCache;
        gMapControl1.DragButton = MouseButtons.Left;
        gMapControl1.CanDragMap = true;
        gMapControl1.Position = new PointLatLng(39.81692, 30.52686);
        gMapControl1.MinZoom = 2;
        gMapControl1.MaxZoom = 18;
        gMapControl1.Zoom = 18;
        gMapControl1.AutoScroll = true;
    }
}
}


I am using above code but satellite images cant be seen. there is an error.

comments

radioman wrote Jan 22 at 1:19 PM

what error? You are not helping me.