Difference between revisions of "Linden Lab Official:Map API Reference"
Jump to navigation
Jump to search
Rand Linden (talk | contribs) |
Rand Linden (talk | contribs) |
||
Line 4: | Line 4: | ||
=== Constructor === | === Constructor === | ||
{{API Constructor|<nowiki> | |||
SLMap (HTMLElement container, | SLMap (HTMLElement container, | ||
SLMapOptions options) | SLMapOptions options) | ||
</nowiki> | </nowiki>}} | ||
Creates the map. The SLMapOptions argument is optional. | Creates the map. The SLMapOptions argument is optional. | ||
Line 20: | Line 20: | ||
|- | |- | ||
|style="font: 10pt courier; padding: 0 10px 0 10px"| | |style="font: 10pt courier; padding: 0 10px 0 10px; white-space: pre; margin: 0"| | ||
centerAndZoomAtSLCoord( | centerAndZoomAtSLCoord( | ||
[[Main Page|XYPoint]] coordinate, | |||
int zoom) | |||
|valign="top"| | |valign="top"| |
Revision as of 18:47, 21 January 2009
SLMap
This class represents the map.
Constructor
Constructor
SLMap (HTMLElement container,
SLMapOptions options)
Creates the map. The SLMapOptions argument is optional.
Methods
Method | Return Value | Description |
---|---|---|
centerAndZoomAtSLCoord( XYPoint coordinate, int zoom) |
None |
Centers and zooms the map to the specified location. |