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 }
public DirectionInfo() { util = new MapsUtils(key); Maps = new SerializableList <StaticMapOverLay>(); }