public OsmMap() : base() { CRS = "EPSG:3857"; Transformation = new MinimalTransformation(); Layers.Add(OpenStreetMap.CreateTileLayer()); Layers.Add(CreateLocationLayer(this.Envelope)); Layers.Add(CreateOfferLayer(this.Envelope)); Home = n => n.NavigateTo(this.Layers[1].Envelope.Centroid, this.Resolutions[15]); }
public void AllVerticesTransformTest() { // arrange var geomety = GeometryFromWKT.Parse("MULTIPOLYGON (((40 40, 20 45, 45 30, 40 40)), ((20 35, 10 30, 10 10, 30 5, 45 20, 20 35), (30 20, 20 15, 20 25, 30 20)))"); var transformation = new MinimalTransformation(); // act var enumeration = transformation.Transform("EPSG:4326", "EPSG:3857", geomety); // assert Assert.AreEqual(14, enumeration.AllVertices().Count()); }