public class MapInfo
extends java.lang.Object
A class to retrieve and provide readonly access to properties of a Meridian map.
| Modifier and Type | Class and Description |
|---|---|
static class |
MapInfo.ZoomLevel
An enumeration to qualify real world zoom levels.
|
| Constructor and Description |
|---|
MapInfo() |
| Modifier and Type | Method and Description |
|---|---|
static MapInfo |
fromClientLocationDataJSON(org.json.JSONObject json,
EditorKey appKey) |
static java.util.List<MapInfo> |
fromJSONArray(org.json.JSONObject json,
EditorKey appKey) |
static MapInfo |
fromJSONObject(org.json.JSONObject json,
EditorKey appKey) |
double |
getGpsMultiplier() |
android.graphics.Matrix |
getGpsTransform()
A transform to go from gps coordinates to map image pixels.
|
EditorKey |
getGroupKey()
The EditorKey of the map group that this map belongs to.
|
java.lang.String |
getGroupName()
The human readable name of this map’s map group.
|
double |
getHeight()
The height of this maps image in pixels.
|
double |
getHeightMeters()
The height of this maps image in meters.
|
android.net.Uri |
getImageURI()
The Uri of the image associated with this map.
|
EditorKey |
getKey()
The EditorKey for this map
|
int |
getLevel()
This map’s integer floor level.
|
java.lang.String |
getLevelLabel()
A human readable name for this map’s floor.
|
double |
getMaxZoom() |
double |
getMaxZoomScale() |
java.lang.String |
getName()
This map’s human readable name.
|
double |
getNorthOffset()
The map’s offset from magnetic northOffset in radians.
|
EditorKey |
getOverviewKey()
The EditorKey of this map’s overview map.
|
android.net.Uri |
getSvgURI()
The Uri of the svg associated with this map.
|
double |
getUnitsPerMeter() |
double |
getWidth()
The width of this maps image in pixels.
|
double |
getWidthMeters()
The width of this maps image in meters.
|
boolean |
isDefaultMap()
True if it’s the default map of its location
|
boolean |
isInvalid()
True if the map is invalid
|
boolean |
isOutdoor()
Whether this map is outdoors.
|
android.graphics.PointF |
latLongToMapPoint(float latitude,
float longitude) |
android.graphics.PointF |
mapPointLatLong(int x,
int y) |
org.json.JSONObject |
toClientLocationDataJSON() |
float |
zoomLevelFromScale(double zoomScale) |
double |
zoomScaleFromLevel(MapInfo.ZoomLevel zoomLevel) |
public static MapInfo fromJSONObject(org.json.JSONObject json, EditorKey appKey) throws org.json.JSONException
org.json.JSONExceptionpublic static MapInfo fromClientLocationDataJSON(org.json.JSONObject json, EditorKey appKey) throws org.json.JSONException
org.json.JSONExceptionpublic org.json.JSONObject toClientLocationDataJSON()
throws org.json.JSONException
org.json.JSONExceptionpublic static java.util.List<MapInfo> fromJSONArray(org.json.JSONObject json, EditorKey appKey) throws org.json.JSONException
org.json.JSONExceptionpublic android.graphics.PointF latLongToMapPoint(float latitude,
float longitude)
public android.graphics.PointF mapPointLatLong(int x,
int y)
public float zoomLevelFromScale(double zoomScale)
public double zoomScaleFromLevel(MapInfo.ZoomLevel zoomLevel)
public double getMaxZoomScale()
public EditorKey getKey()
The EditorKey for this map
public EditorKey getGroupKey()
The EditorKey of the map group that this map belongs to. This may be null.
public EditorKey getOverviewKey()
The EditorKey of this map’s overview map. This may be null.
public android.net.Uri getImageURI()
The Uri of the image associated with this map. This may be null.
public android.net.Uri getSvgURI()
The Uri of the svg associated with this map. This may be null.
public int getLevel()
This map’s integer floor level.
public java.lang.String getName()
This map’s human readable name.
public java.lang.String getGroupName()
The human readable name of this map’s map group.
public java.lang.String getLevelLabel()
A human readable name for this map’s floor.
public double getWidth()
The width of this maps image in pixels.
public double getHeight()
The height of this maps image in pixels.
public double getWidthMeters()
The width of this maps image in meters.
public double getHeightMeters()
The height of this maps image in meters.
public boolean isOutdoor()
Whether this map is outdoors.
public android.graphics.Matrix getGpsTransform()
A transform to go from gps coordinates to map image pixels.
public double getGpsMultiplier()
public double getUnitsPerMeter()
public double getMaxZoom()
public double getNorthOffset()
The map’s offset from magnetic northOffset in radians.
public boolean isInvalid()
True if the map is invalid
public boolean isDefaultMap()
True if it’s the default map of its location