Example #1
0
        /// <inheritdoc />
        public override void VisitWay(Entities.Way way)
        {
            if (!IsArea(way.Tags))
            {
                ModelLoader.LoadWay(Tile, new Way
                {
                    Id     = way.Id,
                    Points = way.Coordinates,
                    Tags   = way.Tags
                });

                return;
            }

            if (way.Coordinates.Count <= 2)
            {
                return;
            }

            ModelLoader.LoadArea(Tile, new Area
            {
                Id     = way.Id,
                Points = way.Coordinates,
                Tags   = way.Tags
            });
        }