Exemplo n.º 1
0
        /// <inheritdoc />
        public override int GetHashCode()
        {
            int hash = 13;

            hash = hash * 7 + QuadKey.GetHashCode();
            hash = hash * 7 + ElevationType.GetHashCode();
            hash = hash * 7 + Projection.GetHashCode();
            hash = hash * 7 + Stylesheet.GetHashCode();
            return(hash);
        }
Exemplo n.º 2
0
        /// <summary> Creates <see cref="Tile"/>. </summary>
        /// <param name="quadKey"></param>
        /// <param name="stylesheet"></param>
        /// <param name="projection"> Projection. </param>
        /// <param name="elevationType"> Elevation type. </param>
        /// <param name="gameObject"> Tile gameobject. </param>
        public Tile(QuadKey quadKey, Stylesheet stylesheet, IProjection projection,
                    ElevationDataType elevationType, GameObject gameObject = null)
        {
            QuadKey       = quadKey;
            Stylesheet    = stylesheet;
            Projection    = projection;
            ElevationType = elevationType;
            GameObject    = gameObject;

            BoundingBox = GeoUtils.QuadKeyToBoundingBox(quadKey);

            CancelationToken = new CancellationToken();
        }
Exemplo n.º 3
0
        /// <inheritdoc />
        public override bool Equals(object obj)
        {
            var tile = obj as Tile;

            if (tile == null)
            {
                return(false);
            }

            return(QuadKey.Equals(tile.QuadKey) &&
                   ElevationType == tile.ElevationType &&
                   Projection.Equals(tile.Projection) &&
                   Stylesheet.Equals(tile.Stylesheet));
        }