GMap.NET icon indicating copy to clipboard operation
GMap.NET copied to clipboard

Map will not zoom in or out when PointLatLng is updating.

Open davidbuckleyni opened this issue 3 years ago • 4 comments

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.

davidbuckleyni avatar Dec 22 '20 20:12 davidbuckleyni

??

turgayacar avatar Feb 02 '21 12:02 turgayacar

The map centre postion does not change i e if the plane scrolls out of view the map Doesnt move.

davidbuckleyni avatar Jun 28 '21 21:06 davidbuckleyni

@davidbuckleyni I am working on a similar program for flight simulator. Did you ever find a fix to this?

Spicy-Bread avatar Dec 24 '21 07:12 Spicy-Bread

@davidbuckleyni I am working on a similar program for flight simulator. Did you ever find a fix to this?

Afraid not

davidbuckleyni avatar Dec 24 '21 17:12 davidbuckleyni