-
Name Type Description arrCoordArray.<number> Coordinates
[left, bottom, right, top].boundsOptionsBounds options.
Name Type Description animationboolean Animation.
bearingnumber Map bearing
durationnumber Duration if animation is enabled. Default
2000.maxZoomnumber Maximum zoom level when fitting the bounds.
paddingnumber | module:cercaliagl/Bounds~BoundsPadding Padding in pixels from the bounds to the map canvas.
pitchnumber Map pitch.
Methods
-
Move the limits horizontally and vertically
Name Type Description xnumber Displacement X axis
ynumber Displacement Y axis
Returns:
Bounds after add
-
Cleans the object bounds. It reinitializes.
-
Clone object
Returns:
Object cloned
-
Name Type Description percentagenumber to increase for every limit (top, bottom, left, right)
Returns:
Returns the object 'Bounds' increased
-
Returns if it's inside the object bounds del objeto
Name Type Description xnumber | undefined Latitude.
ynumber | undefined Longitude.
inclusiveboolean (defaults to true) Inclusive, with the bounds.
Returns:
Returns if it's inside the object bounds.
-
Name Type Description boundsmodule:cercaliagl/Bounds~Bounds Bounds.
partialboolean (defaults to false) If one destination corner is inside the bounds consider contains the bounds. The default value is false. If false, all the destination bounds must be inside this bounds.
inclusiveboolean (defaults to true) Include edges. Default value: true
Returns:
Returns if contains bounds inside object
-
Returns true if a coordinate (LonLat object) is inside the bounds
Name Type Description lonLatmodule:cercaliagl/LonLat~LonLat Coordinate.
Returns:
trueorfalse.
-
Name Type Description boundsmodule:cercaliagl/Bounds~Bounds Bounds to compare
Returns:
Returns if bounds have the same limits
-
Expand the limits for including coordinates {LonLat} or more limits {Bounds}.
Name Type Description boundsOrLonLatmodule:cercaliagl/LonLat~LonLat | module:cercaliagl/Bounds~Bounds | null BoundsorLonLatto extend current bounds -
Expand the limits for including the coordinate XY. Format
[x, y]Name Type Description xnumber Longitud
ynumber Latitud
-
Returns the lower limit for Y axis.
Returns:
bottom
-
Returns the Bounds Options
Returns:
Bounds Options
-
Returns the bounds center
Returns:
Map center
-
Returns an object increasing (
* 0.5) all the limits (top, bottom, left, right).Returns:
bounds doubled by 0.5 for each limit.
-
Height limits.
Returns:
Height bounds
-
Get height width distance in meters.
Returns:
Bounds height distance in meters.
-
Returns the left limit for X axis.
Returns:
left
-
Returns the North East coordinate
Returns:
array NorthEast coordinate
-
Returns the North West coordinate
Returns:
Northwest coordinate
-
Returns the right limit for X axis.
Returns:
right
-
Array with size limits
[width,height]Returns:
Size bounds[width, height]
-
Returns the South East coordinate
Returns:
SouthEast coordinate
-
Returns the South West coordinate
Returns:
Southwest coordinate
-
Returns the top limit for Y axis.
Returns:
top
-
Width limits
Returns:
Bounds width
-
Get bounds width distance in meters.
Returns:
Bounds width distance in meters.
-
Determina si unos limites intersecta con los limites del objeto actual. Se considera que intersectan si uno de sus aristas se encuentran dentro de los limites del otro
Name Type Description boundsmodule:cercaliagl/Bounds~Bounds Bounds
optionsObject Options
Returns:
trueif bounds intersects.
-
Check if bounds are emty or have been initialized yet.
Returns:
trueif empty, elsefalse.
-
Sets the Bounds options
Name Type Description boundsOptionsName Type Description animationboolean Animation.
bearingnumber Map bearing
durationnumber Duration if animation is enabled. Default
2000.maxZoomnumber Maximum zoom level when fitting the bounds.
paddingnumber | module:cercaliagl/Bounds~BoundsPadding Padding in pixels from the bounds to the map canvas.
pitchnumber Map pitch.
-
Returns:
Returns an array with the bounds in format [left, bottom, right, top]
-
Returns:
Returns BoundingBox-String '0.41,41.24,0.541,40.51'
-
Convert bounds to double array. Format:
[[left, bottom], [right, top]]Returns:
Returns array of arrays, each containing [x, y] coordinates
-
Returns the object in string [left, bottom, right, top]
Returns:
Returns a string with the bounds. Format: 'left,bottom,right,top'
-
Returns:
Returns BoundingBox in WKT format
-
Name Type Description maxExtentmodule:cercaliagl/Bounds~Bounds Max extent
optionsOptional value.
options.leftTolerance|options.rightToleranceName Type Description leftTolerancenumber rightTolerancenumber Returns:
Bounds