예제 #1
0
        private string TranslateMapMode(StaticMapMode mode)
        {
            string mapType = string.Empty;

            switch (mode)
            {
                case StaticMapMode.Map:
                    mapType = "map";
                    break;
                case StaticMapMode.Satellite:
                    mapType = "sat";
                    break;
                case StaticMapMode.Hybrid:
                    mapType = "hyb";
                    break;
                default:
                    mapType = "map";
                    break;
            }

            return mapType;
        }
예제 #2
0
        private string TranslateMapMode(StaticMapMode mode)
        {
            string mapType = string.Empty;

            switch (mode)
            {
                case StaticMapMode.Map:
                    mapType = "Road";
                    break;
                case StaticMapMode.Satellite:
                    mapType = "Aerial";
                    break;
                case StaticMapMode.Hybrid:
                    mapType = "AerialWithLabels";
                    break;
                default:
                    mapType = "Road";
                    break;
            }

            return mapType;
        }
예제 #3
0
 public void Enqueue(int startPosID, int endPosID, int width, int height, StaticMapType type, StaticMapMode mode)
 {
     Enqueue(new Tuple <int, int, int, int, StaticMapType, StaticMapMode>(startPosID, endPosID, width, height, type, mode));
 }