GMap.NET
GMap.NET copied to clipboard
Map will not zoom in or out when PointLatLng is updating.
I am using the control to show a plane on the runway or the air but when I try to move the map ie zoom in or out of the map to give a bigger view its not allowing me.
var latitude = struct1.latitude;
var longitude = struct1.longitude;
gMapControl1.Position = new PointLatLng(latitude, longitude);
gMapControl1.Zoom = 15;
gMapControl1.MinZoom = 3;
gMapControl1.MaxZoom = 15;
gMapControl1.ShowCenter = false;
gMapControl1.MouseWheelZoomEnabled = true;
PointLatLng point = new PointLatLng(latitude, longitude);
GMapMarker marker = new GMarkerGoogle(new PointLatLng(latitude, longitude), new Bitmap(AirManagerResources.aircraft_jet_user));
PointLatLng point2 = new PointLatLng((float)latitude, (float)longitude);
gMapControl1.Position = point2;
var plane = new GMapMarkerPlane(point2, (float)Convert.ToDouble(textBox_trueheading.Text));
gMapOverlay.Markers.Add(plane);
gMapControl1.Overlays.Add(gMapOverlay); // overlay added
The above code shows the plane fine and moves when the plane is flying but its not allowing me to move the map other wise.
??
The map centre postion does not change i e if the plane scrolls out of view the map Doesnt move.
@davidbuckleyni I am working on a similar program for flight simulator. Did you ever find a fix to this?
@davidbuckleyni I am working on a similar program for flight simulator. Did you ever find a fix to this?
Afraid not