Map
Defined In: | map.js |
Class: | Map |
Extends: |
Property | Defined By | |
---|---|---|
bbox : Number[] (Wiki Page)
Bounding box of map, in [lon1, lat2, lon2, lat1] format...
Bounding box of map, in [lon1, lat2, lon2, lat1] format
|
Map Map | |
last_pos : Number[] (Wiki Page)
Last map position, as an [x, y] tuple...
Last map position, as an [x, y] tuple
|
Map Map | |
lat : Number (Wiki Page)
Latitude of map's center...
Latitude of map's center
|
Map Map | |
lat_height : Number (Wiki Page)
Height of the map, in degrees of latitude...
Height of the map, in degrees of latitude
|
Map Map | |
lon : Number (Wiki Page)
Longitude of map's center...
Longitude of map's center
|
Map Map | |
lon_width : Number (Wiki Page)
Width of the map, in degrees of longitude...
Width of the map, in degrees of longitude
|
Map Map | |
resolution : Number (Wiki Page)
Resolution of map - controls the ratio of number of nodes a way has and the number of nodes
used to that way in the draw...
Resolution of map - controls the ratio of number of nodes a way has and the number of nodes
used to that way in the drawing process. Not that much savings yet. Automatically
generated based on zoom level.
|
Map Map | |
rotate : Number (Wiki Page)
Tilt degree, in radians...
Tilt degree, in radians
|
Map Map | |
rotate_old : Number (Wiki Page)
Tilt degree from beginning of drag motion...
Tilt degree from beginning of drag motion
|
Map Map | |
x : Number (Wiki Page)
X-coordinate of map's center. Set this to move the map....
X-coordinate of map's center. Set this to move the map.
|
Map Map | |
x_old : Number (Wiki Page)
X-coordinate from beginning of drag motion...
X-coordinate from beginning of drag motion
|
Map Map | |
y : Number (Wiki Page)
X-coordinate of map's center. Set this to move the map....
X-coordinate of map's center. Set this to move the map.
|
Map Map | |
y_old : Number (Wiki Page)
Y-coordinate from beginning of drag motion...
Y-coordinate from beginning of drag motion
|
Map Map | |
zoom : Number (Wiki Page)
Current zoom level...
Current zoom level
|
Map Map | |
zoom_old : Number (Wiki Page)
Zoom factor from beginning of drag or gesture motion...
Zoom factor from beginning of drag or gesture motion
|
Map Map |
Method | Defined By | |
---|---|---|
draw( ) : void (Wiki Page)
Updates the map properties. Runs every frame....
Updates the map properties. Runs every frame.
Parameters:
|
Map Map | |
init( ) : void (Wiki Page)
Initializes the map properties...
Initializes the map properties
Parameters:
|
Map Map | |
pointer_x( ) : Number (Wiki Page)
Mouse's x-coordinate, in the map's coordinate system...
Mouse's x-coordinate, in the map's coordinate system
Parameters:
|
Map Map | |
pointer_y( ) : Number (Wiki Page)
Mouse's y-coordinate, in the map's coordinate system...
Mouse's y-coordinate, in the map's coordinate system
Parameters:
|
Map Map |
This class has no events
Event | Defined By |
---|