Exemplo n.º 1
0
        public MemoryLayer CreateStopLayer()
        {
            var _stopEnumerator = Stops.GetEnumerator();

            _stopEnumerator.MoveNext();

            return(new MemoryLayer
            {
                //Todo: Have each stop have it's own style
                //Todo: Not have application fail when Stops is empty
                Name = "Locations",
                DataSource = new MemoryProvider(Stops.Select(i => i.Feature)),
                Style = _stopEnumerator.Current.Icon
            });
        }