Ejemplo n.º 1
0
        private void ShowShapePoints(GMapOverlay overlay)
        {
            Cursor.Current = Cursors.WaitCursor;
            ShapePoint shapePoint;

            myShapefile.Reset();
            gMap.Overlays.Clear();
            //overlay.Clear();

            //ResetOverlay();

            for (int i = 0; i < myShapefile.Count; i++)
            {
                if (myShapefile.MoveNext())
                {
                    shapePoint = (ShapePoint)myShapefile.Current;

                    marker = new GMarkerGoogle(new GMap.NET.PointLatLng(shapePoint.Point.Y, shapePoint.Point.X),
                                               bitmap);

                    overlay.Markers.Add(marker);
                }
            }

            gMap.Overlays.Add(overlay);
            gMap.Refresh();

            Cursor.Current = Cursors.Default;
        }