Example #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void mapLimitTest()
        public virtual void mapLimitTest()
        {
            MapViewPosition mapViewPosition = new MapViewPosition(new DisplayModel());

            Assert.assertNull(mapViewPosition.MapLimit);

            LatLong latLong = new LatLong(10, 20, true);

            mapViewPosition.Center = latLong;
            Assert.assertEquals(latLong, mapViewPosition.Center);

            BoundingBox boundingBox = new BoundingBox(1, 2, 3, 4);

            mapViewPosition.MapLimit = boundingBox;
            Assert.assertEquals(boundingBox, mapViewPosition.MapLimit);
            Assert.assertEquals(latLong, mapViewPosition.Center);

            mapViewPosition.Center = latLong;
            Assert.assertEquals(new LatLong(3, 4, true), mapViewPosition.Center);
        }
Example #2
0
 public override void draw(BoundingBox boundingBox, sbyte zoomLevel, Canvas canvas, Point topLeftPoint)
 {
     // do nothing
 }