get_position: Create a getPosition data accessor
Description
Creates a JS method to retrieve the position of each object.
Usage
get_position(latitude = NULL, longitude = NULL, coordinates = NULL)
Value
JavaScript code evaluated on the client-side
Arguments
- latitude
latitude property of data object
- longitude
longitude property of data object
- coordinates
coordinates property of data object
(in this case latitude
and longitude
parameters are ignored)