new Basemap(options [, preload])
Class that provides an ol.Map with base layers, labels, and drag-and-drop
Parameters:
| Name | Type | Argument | Default | Description |
|---|---|---|---|---|
options |
olx.MapOptions | Constructor options |
||
preload |
number |
<optional> |
0 | Preload option for base layer |
- Mixes In:
- nyc/Basemap
- Source:
Extends
- ol.Map
Members
-
<static, constant> CENTER :ol.Coordinate
-
The center of New York City
Type:
- ol.Coordinate
- Source:
-
<static, constant> EXTENT :ol.Extent
-
The bounds of New York City
Type:
- ol.Extent
- Source:
Methods
-
getBaseLayers()
-
Returns the base layers
- Source:
Returns:
- Type
- nyc.Basemap.BaseLayers
-
<protected> getStorage()
-
Get the storage used for laoding and saving data
- Source:
Returns:
srorage
- Type
- nyc.ol.storage.Local
-
hidePhoto()
-
Hide photo layer
- Source:
-
showLabels(labelType)
-
Show the specified label layer
Parameters:
Name Type Description labelTypenyc.Basemap.BaseLayers The label type to show
- Source:
-
showPhoto( [year])
-
Show photo layer
Parameters:
Name Type Argument Description yearnumber <optional>
The photo year to show - shows the latest year if not provided
- Source: