Class CAF.GMap
Object
|
+--CAF.GMap
- class
CAF.GMap
GMap utilities.
Defined in gmap.js
Method Summary |
<static> Object
|
copyAttributes(src, dst, props, types)
Copies specified attributes from the source element to properties on the destination object.
|
<static> Object
|
copyProperties(src, dst, props)
Copies specified properties from source object to destination.
|
<static> Object
|
gLatLngToString(coords)
Converts the specified GLatLng object to a coordinates string.
|
<static> void
|
setAttributes(src, dst, props, types)
Copies specified properties from the source object to attributes on the destination element.
|
<static> Object
|
stringToGLatLng(s)
Converts the specified coordinates string to a GLatLng object.
|
<static> void
|
waitUntilCreated(id, fn, key)
Invokes the specified function after the specfied map has been created.
|
<static> void
|
waitUntilLoaded(id, fn, key)
Invokes the specified function after the specfied map has been loaded
(its center has been set and is ready to be manipulated).
|
CAF.GMap
CAF.GMap()
copyAttributes
<static> Object copyAttributes(src, dst, props, types)
Copies specified attributes from the source element to properties on the destination object.
Parameters:
dst
- Destination object. If null, a new object is created for the copy.
props
- List of properties to copy.
types
- (optional) Map of types to use to convert the string attributes to object properties.
copyProperties
<static> Object copyProperties(src, dst, props)
Copies specified properties from source object to destination.
Parameters:
dst
- Destination object (copy to this). If null, a new object is created for the copy.
props
- List of properties to copy.
gLatLngToString
<static> Object gLatLngToString(coords)
Converts the specified GLatLng object to a coordinates string.
Returns "0;0" if GLatLng is null or bogus coordinates.
Parameters:
s
- GLatLng to convert; may be null.
setAttributes
<static> void setAttributes(src, dst, props, types)
Copies specified properties from the source object to attributes on the destination element.
Parameters:
dst
- Destination element.
props
- List of properties to copy.
types
- (optional) Map of types to use to convert the object properties to string attributes.
stringToGLatLng
<static> Object stringToGLatLng(s)
Converts the specified coordinates string to a GLatLng object.
Returns new GLatLng(0, 0) if string is null or bogus coordinates.
Parameters:
s
- String to convert; may be null.
waitUntilCreated
<static> void waitUntilCreated(id, fn, key)
Invokes the specified function after the specfied map has been created.
If the map has already been created, invokes the function immediately.
Parameters:
key
- (optional) Key to use to identify function (so that it can be registered only once).
waitUntilLoaded
<static> void waitUntilLoaded(id, fn, key)
Invokes the specified function after the specfied map has been loaded
(its center has been set and is ready to be manipulated).
If the map has already been loaded, invokes the function immediately.
Parameters:
key
- (optional) Key to use to identify function (so that it can be registered only once).
Documentation generated by
JSDoc on Mon Aug 30 14:56:06 2021