示例#1
0
        public static MapRoute ToBingMapRoute(this GeoRoute route, int level)
        {
            MapRoute maproute = new MapRoute(level);

            foreach (PointLatLng pos in route)
            {
                maproute.Add(BingMapTileSystem.LatLngToPixelXY(pos, level));
            }
            return(maproute);
        }
        public static MapRoute ToSingleMapRoute(this GeoRoute route)
        {
            MapRoute maproute = new MapRoute(0);

            foreach (PointLatLng pos in route)
            {
                maproute.Add(SingleMapTransformSystem.ModelXYToPixelXY(pos));
            }
            return(maproute);
        }