Mixin BoundsMixin

This mixin is auto-loaded by the scripting plugin and mixed into the native java class Bounds.

Name Description
Methods
make

This mixin provides additional properties and methods for the native Java class Bounds, whose native public methods are available for scripting, too. If a native method name is hidden by a property name in the mixin, then prefix the native name with $.

Functions

make:Bounds

Creates a Bounds from a javascript object.

Parameters

Name Type Description
obj object a javascript object

Examples

var bounds1 = Bounds.make({minlat: 46.9479186, minlon: 7.4619484, maxlat: 46.9497642, maxlon: 7.4660683});

var bounds2 = Bounds.make({
   min: {lat: 46.9479186, lon: 7.4619484}, 
   max: {lat: 46.9497642, lon: 7.4660683}
});