예제 #1
0
 public Center(LatLng latlng_, double offX_ = 0, double offY_ = 0, char letter = '\0')
 {
     latlng = latlng_;
     offX = offX_;
     offY = offY_;
     stopLetter = letter;
 }
예제 #2
0
 /// <summary>
 /// Default constructor for class center with no given parameters
 /// </summary>       
 public Center()
 {
     //All set to their default as specified by the problem domain
     latlng = null;
     offX = 0;
     offY = 0;
     stopLetter = '\0';
 }
예제 #3
0
 /// <summary>
 /// This is the class constructor.  This class constructs a center point for the api to zoom in on.
 /// This class also constructs mcenter, pcenter, scenter, and ecenter. 
 /// mcenter-specifies a point to place a star icon
 /// pcenter-specifies a point to place a search icon
 /// scenter-specifies a point to place the start icon at the begininning of a route
 /// ecenter-specifies a point to place the end icon at the end of a route
 /// </summary>
 /// <param name="inputLat">accepts a 'double' value for a latitude position</param>
 /// <param name="inputLng">accepts a 'double' value for a longitude position</param>
 /// <param name="inputOffx">accepts 'grid' type coordinates to offset the icon from the point</param>
 /// <param name="inputOffy">same as inputOffx</param>
 public Center(double inputLat, double inputLng, int inputOffx = 0, int inputOffy = 0, char letter = '\0')
 {
     //No limit on OFFY/OFFY so will not test for upper and lower bounds
     offX = inputOffx;
     offY = inputOffy;
     // Using nested ternary to test for upper and lower bounds on latitude : if > 90 assign 90 if < -90 assign -90 else assign input
     // Using nested ternary for longitude to test for upper and lower bounds. Takes values between -180 and 180
     latlng = new LatLng((inputLat > 90 ? 90 : (inputLat < -90 ? -90 : inputLat)), (inputLng > 180 ? 180 : (inputLng < -180 ? -180 : inputLng)));
     stopLetter = letter;
 }
예제 #4
0
 public Locations()
 {
     mapDetails_ = null;
     linkId = String.Empty;
     dragPoint = false;
     type = String.Empty;
     street = String.Empty;
     countryName = String.Empty;
     stateName = String.Empty;
     countyName = String.Empty;
     cityName = String.Empty;
     postalCode = String.Empty;
     sideOfStreet = String.Empty;
     countryNameType = String.Empty;
     cityNameType = String.Empty;
     countyNameType = String.Empty;
     geocodeQuality = String.Empty;
     geocodeQualityCode = String.Empty;
     stateNameType = String.Empty;
     latLng = new LatLng();
     displayLatLng = new LatLng();
 }
예제 #5
0
        // Ngwa T Leonard

        public StaticMap(LatLng location, int _zoom = 0, uint width = 640, uint height = 480, StaticMap.ImageType _imageType = StaticMap.ImageType.png, StaticMap.MapType _mapType = StaticMap.MapType.hyb, bool _declutter = false, List<XIS> _xis = null)
        {
            session_ = String.Empty;
            bBox_ = null;
            zoom_ = _zoom;
            imageType_ = _imageType;
            declutter_ = false;
            size_ = new Size(width, height);
            mapType_ = _mapType;
            center_ = new Center(location);
            mCenter_ = new Center(location);
            pCenter_ = null;
            sCenter_ = null;
            eCenter_ = null;
            stops_ = null;
            shape_ = null;
            ellipse_ = null;
            polyline_ = null;
            polygon_ = null;
            map_ = null;
            xis_ = _xis;
            pois_ = null;
            mapChanged = false;
        }