Beispiel #1
0
        public void SerializePlacemarkCollection(PlacemarkCollection placemarks)
        {
            var serializer = new PlacemarkCollectionSerializer();
            var wrapper    = new PlacemarkCollectionWrapper()
            {
                Document = placemarks
            };

            serializer.Serialize(DEFAULT_OUTPUT_FILE, wrapper);
        }
Beispiel #2
0
        public PlacemarkCollection CreatePlacemarkCollection(List <Sight> sights)
        {
            var collection = new PlacemarkCollection();

            //foreach (var sight in sights)
            //{
            //    collection.Add(new Placemark(sight));
            //}
            collection.WalkName = "All Moscow Sights (remote pics)";

            foreach (var sight in sights)
            {
                collection.Placemarks.Add(new Placemark(sight));
            }

            return(collection);
        }