Linden Lab Official:Map API Reference: Difference between revisions

From Second Life Wiki
Jump to navigation Jump to search
Rand Linden (talk | contribs)
No edit summary
Rand Linden (talk | contribs)
No edit summary
Line 4: Line 4:
=== Constructor ===
=== Constructor ===


<div style="font: 10pt courier; white-space: pre; color: black; background: #F9F9F9; border:solid 1px #AAAAAA; padding: 0 0 10px 10px"><nowiki>
{{API Constructor|<nowiki>
SLMap (HTMLElement container,  
SLMap (HTMLElement container,  
       SLMapOptions options)
       SLMapOptions options)
</nowiki></div>
</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(  
<br>&nbsp;&nbsp;[[Main Page|XYPoint]] coordinate,  
&nbsp;&nbsp;[[Main Page|XYPoint]] coordinate,  
<br>&nbsp;&nbsp;int zoom)  
&nbsp;&nbsp;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.