OpenLayers JavaScript Mapping Library |
OpenLayers. PixelThis class represents a screen coordinate, in x and y coordinates Summary
equals
Determine whether one pixel is equivalent to another Parameters
Returns{Boolean} The point passed in as parameter is equal to this. Note that if px passed in is null, returns false. add
Parameters
Returns{OpenLayers.Pixel} A new Pixel with this pixel’s x&y augmented by the values passed in. offset
Parameters px - {OpenLayers.Pixel} Returns{OpenLayers.Pixel} A new Pixel with this pixel’s x&y augmented by the x&y values of the pixel passed in. |
Cast this object into a string
toString:function()
Return a clone of this pixel object
clone:function()
Determine whether one pixel is equivalent to another
equals:function( px )
add:function( x, y )
Parameters px - {OpenLayers.Pixel}
offset:function( px )