Class nokia.maps.geo.Strip
This class represents an observable array that stores geographic coordinates in an optimized way and allows specialized operations on them.
The constructor for this class initializes a new instance of Strip.
Strip object.
Strip instance.
Strip instance asynchronously.
Strip instance on the basis of the received value.
Strip instance.
This class represents an observable array that stores geographic coordinates in an optimized way and allows specialized operations on them.
The constructor for this class initializes a new instance of Strip.
| {Number[] | nokia.maps.geo.Coordinate[]} | coords |
Either an array of
geographic coordinates following the pattern [lat, lng, alt, ...,
lat, lng, alt] or an array of instances of
nokia.maps.geo.Coordinate
|
| {String} | mode |
A string indicating how the array is to be interpreted, for details,
please see nokia.maps.geo.Strip.convertToArray().
|
Strip object.
| {nokia.maps.geo.Coordinate} | coord |
An object representing an element to be added to the Strip
|
| {Number} | [idx]: | An optional index at which the element is to be inserted |
Strip instance.
| {Array} | coords |
A collection containing coordinates to be added to the Strip; it can
be either an array of latitude and longitude values or an array of objects that can be
converted to instances of nokia.maps.geo.Coordinate.
|
| {Number} | [idx]: | The optional index at which the collection is to be inserted |
| {String} | [mode]: |
The optional mode of how the given coordinate array should be interpreted (for details,
please see nokia.maps.geo.Strip.convertToArray())
|
Strip instance
asynchronously.
| {Array} | coords |
The collection of coordinates to be added to the Strip; it
can be either an array of latitude and longitude values or an array of
objects that can be converted to instances of nokia.maps.geo.Coordinate
|
| {Number} | [idx]: | The optional index at which the collection is to be inserted |
| {String} | [mode]: |
The optional mode of how the given coordinate array should be interpreted (for details
please see nokia.maps.geo.Strip.convertToArray())
|
| {Function} | [callback]: | The optional callback function to be called after when the operation is complete |
| {Function} | callback |
A callback to be invoked (after the list has been modified) with following
arguments:
|
| {Object} | [context]: null | The context to use when the callback is invoked |
[lat, lng, alt,
..., lat, lng, alt].
| {Array[Number]} | An array of coordinate values (a copy of the given stip object's internal array) |
[lat, lng, alt, ..., lat, lng, alt].
| {Array} | [coords]: |
An optional collection of geographic coordinates to be inserted into the
Strip after the start index; this argument can be either an
array of latitude and longitude values or an array of objects that can be
converted to instances of nokia.maps.geo.Coordinate
|
| {String} | [mode]: |
An optional string indicating how the received array should be interpreted.
The default value is "auto". The possible values are:
Additionally, |
| {Array[Number]} |
An array in the form [lat, lng, alt, ..., lat, lng, alt].
|
Strip instance on the basis of the
received value. If the caller provides an existing instance Strip,
the same object is returned. If the caller provides an array, the array is
converted to a Strip -- mode must be the first
item in array (for details of mode, please see
nokia.maps.geo.Strip.convertToArray()). When it
receives any other type of value/object, it returns an empty Strip.
| {Object} | value |
An object or a value from which to create a Strip
instance if possible
|
| {nokia.maps.geo.Strip} | An instance of this class created on the basis of the object supplied by the caller |
| {Number} | idx | The index from which the element should be retrieved |
| {nokia.maps.geo.Coordinate} | An object containing the geographic coordinates of a location |
| {Number} | idx | The index from which the coordinates should be retrieved. |
| {Number} | [count]: 1 | The number of elements whose coordinates are to be retrieved; if the value is negative, the returned coordinates are presented in reverse order |
| {Number[]} |
An array of coordinates in the form [lat, lng, lat, lng, ...]
|
| {Number} | The length of the stripi as a number of elements |
| {Number} | idx | The index at which the element is to be removed |
| {Function} | callback | The observer callback function to be removed |
| {Object} | context | The context for the callback |
| {nokia.maps.util.OObject} |
A reference to this OObject instance
|
| {Number} | idx | The index at which the element is to be inserted; if a strip element already exists at that index, it is replaced |
| {nokia.maps.geo.Coordinate} | coord | An object representing a location defined in terms of latitude and longitude to be added to the strip |
Strip instance.
| {Number} | idx | The start index after which elements should be removed and/or the collection is to be inserted |
| {Number} | remove | A value indicating how many elements should be removed after the start index |
| {Array} | [coords]: |
An optional collection of coordinates to be inserted into the Strip;
it can be either be an array of latitude and longitude values or an array of
objects that can be converted to instances of nokia.maps.geo.Coordinate
|
| {String} | [mode]: |
An optional string indicating how the received array should be interpreted;
for details, please see nokia.maps.geo.Strip.convertToArray()
regarding further details.
|
