Exemplo n.º 1
0
        private void UpdateBoundingBox(DataContainer container, boundsType bounds)
        {
            container.NorthEast = new LatLng
            {
                Lat = (double)bounds.maxlat,
                Lng = (double)bounds.maxlon
            };

            container.SouthWest = new LatLng
            {
                Lat = (double)bounds.minlat,
                Lng = (double)bounds.minlon
            };
        }
Exemplo n.º 2
0
        private static boundsType ReadBounds( XElement element )
        {
            element.RequireArgument<XElement>( "element" ).NotNull<XElement>();

            boundsType bounds = new boundsType();
            bounds.maxlat = Convert.ToDecimal(element.Attribute("maxlat").Value);
            bounds.maxlon = Convert.ToDecimal( element.Attribute( "maxlon" ).Value );
            bounds.minlat = Convert.ToDecimal( element.Attribute( "minlat" ).Value );
            bounds.minlon = Convert.ToDecimal( element.Attribute( "minlon" ).Value );

            return bounds;
        }
        private void UpdateBoundingBox(DataContainer container, boundsType bounds)
        {
            container.northEast = new LatLngZ 
            {
                lat = (double)bounds.maxlat,
                lng = (double)bounds.maxlon
            };

            container.southWest = new LatLngZ
            {
                lat = (double)bounds.minlat,
                lng = (double)bounds.minlon
            };
        }