| 22 | | var center = bounds.getCenterPixel(); |
|---|
| 23 | | t.eq( center.x, 5, "bounds.getCenterPixel() has correct x value" ); |
|---|
| 24 | | t.eq( center.y, 3, "bounds.getCenterPixel() has correct y value" ); |
|---|
| 25 | | |
|---|
| 26 | | var center = bounds.getCenterLonLat(); |
|---|
| 27 | | t.eq( center.lon, 5, "bounds.getCenterLonLat() has correct lon value" ); |
|---|
| 28 | | t.eq( center.lat, 3, "bounds.getCenterLonLat() has correct lat value" ); |
|---|
| 29 | | |
|---|
| | 22 | var center = new OpenLayers.Pixel(5,3); |
|---|
| | 23 | var boundsCenter = bounds.getCenterPixel(); |
|---|
| | 24 | t.ok( boundsCenter.equals(center), "bounds.getCenterLonLat() has correct value" ); |
|---|
| | 25 | |
|---|
| | 26 | var center = new OpenLayers.LonLat(5,3); |
|---|
| | 27 | var boundsCenter = bounds.getCenterLonLat(); |
|---|
| | 28 | t.ok( boundsCenter.equals(center), "bounds.getCenterLonLat() has correct value" ); |
|---|