forked from 0x2620/oxjs
various documentation-related changes
This commit is contained in:
parent
b6fdf0c28b
commit
a6ed310087
13 changed files with 880 additions and 301 deletions
|
|
@ -1,5 +1,89 @@
|
|||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
||||
|
||||
/*@
|
||||
Ox.Map <function> Basic map object
|
||||
# DESCRIPTION --------------------------------------------------------------
|
||||
<code>Ox.Map</code> is a wrapper around the
|
||||
<a href="http://code.google.com/apis/maps/documentation/javascript/">Google
|
||||
Maps API</a>.
|
||||
# USAGE --------------------------------------------------------------------
|
||||
() -> <f> Map object
|
||||
(options) -> <f> Map object
|
||||
(options, self) -> <f> Map object
|
||||
# ARGUMENTS ----------------------------------------------------------------
|
||||
options <o|{}> options
|
||||
clickable <b|false> If true, clicking on the map finds a place
|
||||
editable <b|false> If true, places are editable
|
||||
findPlaceholder <s|"Find"> Placeholder text for the find input element
|
||||
labels <b|false> If true, show labels on the map
|
||||
markers <n|100> Maximum number of markers to be displayed
|
||||
places <[o]|[]> Array of place objects
|
||||
countryCode <s> ISO 3166 country code
|
||||
east <n> Longitude of the eastern boundary in degrees
|
||||
editable <b|false> If true, the place is editable
|
||||
geoname <s> Geoname (like "Paris, Île-de-France, France")
|
||||
lat <n> Latitude in degrees
|
||||
lng <n> Longitude in degrees
|
||||
markerColor <s|"red"> CSS color of the place marker
|
||||
markerSize <n|16> size of the place marker in px
|
||||
name <s> Name (like "Paris")
|
||||
north <n> Latitude of the northern boundary in degrees
|
||||
south <n> Latitude of the southern boundary in degrees
|
||||
type <s> Type (like "city" or "country")
|
||||
west <n> Longitude of the western boundary in degrees
|
||||
selected <s|""> Id of the selected place
|
||||
statusbar <b|false> If true, the map has a statusbar
|
||||
toolbar <b|false> If true, the map has a toolbar
|
||||
self <o|{}> Shared private variable
|
||||
# EVENTS -------------------------------------------------------------------
|
||||
addplace <!> Fires when a place has been added
|
||||
place <o> Place object
|
||||
editplace <!> Fires when a place has been edited
|
||||
place <o> Place object
|
||||
geocode <!> Fires when a google geocode request returns
|
||||
latLng <o|u> Query coordinates, or undefined
|
||||
lat <n> latitude
|
||||
lng <n> longitude
|
||||
address <s|u> Query string, or undefined
|
||||
results <[o]> Google Maps geocode results
|
||||
address_components <[o]> Address components
|
||||
long_name <s> Long name
|
||||
short_name <s> Short name
|
||||
types <[s]> Types (like "country" or "political")
|
||||
formatted_address <s> Formatted address
|
||||
geometry <o> Geometry
|
||||
bounds <o> Bounds
|
||||
northEast <o> North-east corner
|
||||
lat <n> Latitude
|
||||
lng <n> Longitude
|
||||
southWest <o> South-west corner
|
||||
lat <n> Latitude
|
||||
lng <n> Longitude
|
||||
location <o> Location
|
||||
lat <n> Latitude
|
||||
lng <n> Longitude
|
||||
location_type <s> Location type (like "APPROXIMATE")
|
||||
viewport <o> Viewport
|
||||
northEast <o> North-east corner
|
||||
lat <n> Latitude
|
||||
lng <n> Longitude
|
||||
southWest <o> South-west corner
|
||||
lat <n> Latitude
|
||||
lng <n> Longitude
|
||||
types <[s]> Types (like "country" or "political")
|
||||
# EXAMPLES -----------------------------------------------------------------
|
||||
<script>
|
||||
// simple
|
||||
Ox.load('UI', function() {
|
||||
Ox.Map().appendTo(Ox.UI.$body);
|
||||
});
|
||||
</script>
|
||||
> Ox.Map() === true
|
||||
false
|
||||
> Ox.Map() === false
|
||||
false
|
||||
@*/
|
||||
|
||||
Ox.Map = function(options, self) {
|
||||
|
||||
self = self || {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue