Yahoo! UI Library

CHZERO  1.0.0

Yahoo! UI Library > CHZERO > OpenLayers.Bounds
Search:
 
Filters

Class OpenLayers.Bounds

OpenLayers Bounds
영역 박스를 나타내는 클래스.

Constructor

OpenLayers.Bounds ( left , bottom , right , top )
Parameters:
left <Number>
bottom <Number>
right <Number>
top <Number>

Methods

add

OpenLayers.Bounds add ( x , y )
x,y 추가 후 새로운 bounds 반환
Parameters:
x <Float>
y <Float>
Returns: OpenLayers.Bounds
new bounds

contains

Boolean contains ( x , y , inclusive )
Parameters:
x <Float>
y <Float>
inclusive <Boolean> border 포함 할지 안할지. 기본 true
Returns: Boolean
포함되는지

containsBounds

void containsBounds ( bounds , partial , inclusive )
Parameters:
bounds <OpenLayers.Bounds>
partial <Boolean> 타겟 코너 중에 어떤 것 이라도 bounds 안에 있어 포함되었다고 할려면 true. 디폴트 false. target bounds 전체가 반드시 bounds에 포함해야 한다면 false
inclusive <Boolean>

containsLonLat

Boolean containsLonLat ( ll , inclusive )
Parameters:
ll <OpenLayers.LonLat>
inclusive <Boolean> border 포함 할지 안할지. 기본 true
Returns: Boolean
포함되는지

containsPixel

Boolean containsPixel ( px , inclusive )
Parameters:
px <OpenLayers.Pixel>
inclusive <Boolean> border 포함 할지 안할지. 기본 true
Returns: Boolean
포함되는지

determineQuadrant

String determineQuadrant ( lonlat )
어떤 사분면인지
Parameters:
lonlat <OpenLayers.LonLat>
Returns: String
해당하는 사분면 ("br","tr","tl","bl")

extend

OpenLayers.Bounds extend ( LonLat,Point,Bounds )
Parameters:
LonLat,Point,Bounds <Object>
Returns: OpenLayers.Bounds
new Bounds

fromArray

static OpenLayers.Bounds fromArray ( [min , reverseAxisOrder )
Parameters:
[min <Array(Float)> x, min y, max x, max y]
reverseAxisOrder <Boolean> reverse axis
Returns: OpenLayers.Bounds
new bounds

fromSize

static OpenLayers.Bounds fromSize ( size )
Parameters:
size <OpenLayers.Size>
Returns: OpenLayers.Bounds
new bounds

fromString

static OpenLayers.Bounds fromString ( str , reverseAxisOrder )
Parameters:
str <String> "min x, min y, max x, max y"
reverseAxisOrder <Boolean> reverse axis
Returns: OpenLayers.Bounds
new bounds

getCenterPixel

OPenLayers.Pixel getCenterPixel ( )
Returns: OPenLayers.Pixel
bounds center

getCetnerLonLat

OPenLayers.LonLat getCetnerLonLat ( )
Returns: OPenLayers.LonLat
bounds center

getHeight

Float getHeight ( )
Returns: Float
height

getSize

OpenLayers.Size getSize ( )
Returns: OpenLayers.Size
size

getWidth

Float getWidth ( )
Returns: Float
width

intersectsBounds

Boolean intersectsBounds ( bounds , inclusive )
Parameters:
bounds <OpenLayers.Bounds>
inclusive <Boolean> border 포함 할지 안할지. 기본 true
Returns: Boolean
교차하는지

scale

OpenLayers.Bounds scale ( ratio , origin )
Parameters:
ratio <Float>
origin <origin} {OpenLayers.Pixel | OpenLayers.LonLat> 디폴트 center
Returns: OpenLayers.Bounds
new Bounds

toArray

Array toArray ( )
Returns: Array
left,bottom,right,top

toBBOX

String toBBOX ( decimal , reverseAxisOrder )
받은 pixel과의 거리계산.
Parameters:
decimal <Integer> 유효 자리수. 디폴트 6
reverseAxisOrder <Boolean> 축을 반대로 할 것인지
Returns: String
"min x,min y,max x,max y"

toGeometry

OpenLayers.Geometry.Polygon toGeometry ( )
새로운 폴리곤 지오메트리 생성 후 반환
Returns: OpenLayers.Geometry.Polygon
new polygon

toString

String toString ( )
Returns: String
bounds string

transform

void transform ( source , dest )
Parameters:
source <OpenLayers.Projection>
dest <OpenLayers.Projection>

wrapDateLine

OpenLayers.Bounds wrapDateLine ( maxExtent , options )
Parameters:
maxExtent <OpenLayers.Bounds>
options <Object>
Returns: OpenLayers.Bounds
bounds


Copyright © 2012 Yahoo! Inc. All rights reserved.