Пример #1
0
        IList <GeoPolygon> GetPolygons()
        {
            var points            = regionOverlay.GetPolygonPoints();
            List <GeoPolygon> lgp = new List <GeoPolygon>();

            foreach (var ppoly in points)
            {
                var gp = new GeoPolygon();
                foreach (var point in ppoly)
                {
                    var loc = MercatorWrapper.GetLocation(point, _viewPort, currentZoom);
                    gp.AddLast(loc);
                }
                lgp.Add(gp);
            }
            return(lgp);
        }