Esempio n. 1
0
 public StaticMapOverLay(string map_key, LatLng center, int width, int height)
 {
     this.util        = new MapsUtils(map_key);
     this.m_latitude  = center.Lat;
     this.m_longitude = center.Lng;
     this.m_zoom      = 2;
     this.m_width     = width;
     this.m_height    = height;
 }
Esempio n. 2
0
 public StaticMapOverLay(string map_key, LatLng loc1, LatLng loc2, int width, int height)
 {
     this.util        = new MapsUtils(map_key);
     this.m_latitude  = (loc1.Lat + loc2.Lat) / 2;
     this.m_longitude = (loc1.Lng + loc2.Lng) / 2;;
     this.m_zoom      = util.GetSuiatbleZoomForPoints(loc1, loc2, width, height);
     this.m_width     = width;
     this.m_height    = height;
 }
Esempio n. 3
0
 public StaticMapOverLay(string map_key, double latitude, double longitude, int zoom, int width, int height)
 {
     this.m_latitude  = latitude;
     this.m_longitude = longitude;
     this.m_zoom      = zoom;
     this.m_width     = width;
     this.m_height    = height;
     this.util        = new MapsUtils(map_key);
 }
Esempio n. 4
0
        public DirectionInfo(string key, SerializableList <LatLng> aPoints, SerializableList <DirectionStep> aSteps)
        {
            Points = aPoints;
            Steps  = aSteps;
            Maps   = new SerializableList <StaticMapOverLay>();
            for (int i = 0; i < (Steps.Count - 1); ++i)
            {
                StaticMapOverLay img = new StaticMapOverLay(key, Steps[i].step_Location, Steps[i + 1].step_Location, 400, 400);
                Maps.Add(img);
            }
            StaticMapOverLay img_level1 = new StaticMapOverLay(key, Steps[0].step_Location, Steps[Steps.Count - 1].step_Location, 400, 400);

            Maps.Add(img_level1);

            StaticMapOverLay img_level0 = new StaticMapOverLay(key, Steps[0].step_Location, 400, 400);

            Maps.Add(img_level0);
            this.key = key;
            util     = new MapsUtils(key);

#if DESKTOP_VERSION
            PreLoadAllMap();
#endif
        }
Esempio n. 5
0
 public DirectionInfo()
 {
     util = new MapsUtils(key);
     Maps = new SerializableList <StaticMapOverLay>();
 }
Esempio n. 6
0
 public StaticMapOverLay()
 {
     util = new MapsUtils();
 }