The Lat49 API code is encapsulated within the global Lat49 object. The object provides some convenience methods for embedding ads within HTML code, two classes (Lat49.AdHelper and Lat49.Ads) for fetching ads, and a Lat49.Tile object defining ad boundaries.
The Lat49.AdHelper class provides the highest level access to Lat49 ads. Using this class, ads can be fetched, cached and displayed based on geographic and zoom level information.
The Lat49.Tile object defines the geographic bounds of the ads for each zoom level. Publishers do not need to know about ad bounds if they use the Lat49.AdHelper class to get ads. However, the Lat49.Tile object does provide a method for computing zoom levels that can be useful even when Lat49.AdHelper is used. It also provides some methods for converting zoom levels from some common map APIs to the Lat49 scheme.
The Lat49.Ads class provides methods for fetching ads from the server. The ads are accessed by indices rather than geographic coordinates, so the Lat49.Ads class is not recommended for general use by publishers.
The public methods for the API objects/classes are described in the following sections. The last section (Section 4.5.1) describes how to tweak the look of the ads by setting attributes within the container DIV.