|
void | CheckServerConnection (Action< bool > callback) |
| Allows you to test the connection to the Internet.
|
|
void | DispatchEvent (params OnlineMapsEvents[] evs) |
| Dispatch map events.
|
|
void | GetBottomRightPosition (out double lng, out double lat) |
| Get the bottom-right corner of the map.
|
|
void | GetCorners (out double tlx, out double tly, out double brx, out double bry) |
| Returns the coordinates of the corners of the map.
|
|
OnlineMapsDrawingElement | GetDrawingElement (Vector2 screenPosition) |
| Gets drawing element from screen.
|
|
void | GetPosition (out double lng, out double lat) |
| Get the map coordinate.
|
|
OnlineMapsSavableItem[] | GetSavableItems () |
| Returns an array of items to save.
|
|
void | GetTileCorners (out double tlx, out double tly, out double brx, out double bry) |
| Get the tile coordinates of the corners of the map.
|
|
void | GetTileCorners (out double tlx, out double tly, out double brx, out double bry, int zoom) |
| Get the tile coordinates of the corners of the map.
|
|
void | GetTilePosition (out double px, out double py) |
| Get the tile coordinates of the map.
|
|
void | GetTilePosition (out double px, out double py, int zoom) |
| Get the tile coordinates of the map.
|
|
void | GetTopLeftPosition (out double lng, out double lat) |
| Get the top-left corner of the map.
|
|
bool | InMapView (double lng, double lat) |
| Checks if the coordinates are in the map view.
|
|
void | Redraw () |
| Full redraw map.
|
|
void | RedrawImmediately () |
| Stops the current process map generation, clears all buffers and completely redraws the map.
|
|
void | SetPosition (double lng, double lat, bool ignoreSamePosition=true) |
| Set the the map coordinate.
|
|
void | SetPositionAndZoom (double lng, double lat, float? ZOOM=null) |
| Sets the position and zoom.
|
|
void | SetTexture (Texture2D newTexture) |
| Sets the texture, which will draw the map. Texture displaying on the source you need to change yourself.
|
|
void | SetTilePosition (double tx, double ty, int? tileZoom=null) |
| Sets the position of the center point of the map based on the tile position.
|
|
void | UpdateCorners () |
| Updates the coordinates of the corners of the map.
|
|
|
Action | OnChangePosition |
| Event caused when the user change map position.
|
|
Action | OnChangeZoom |
| Event caused when the user change map zoom.
|
|
Action | OnGUIAfter |
| Event caused at the end of OnGUI method.
|
|
Action | OnGUIBefore |
| Event caused at the beginning of OnGUI method.
|
|
Func< Vector2, OnlineMapsMarker > | OnGetMarkerFromScreen |
| Intercepts getting marker by the screen coordinates.
|
|
Action | OnLateUpdateAfter |
| The event is invoked at the end LateUpdate.
|
|
Action | OnLateUpdateBefore |
| The event is called at the start LateUpdate.
|
|
Action | OnMapUpdated |
| Event which is called after the redrawing of the map.
|
|
Action | OnUpdateBefore |
| Event is called before Update.
|
|
Action | OnUpdateLate |
| Event is called after Update.
|
|
bool | allowRedraw |
| Allows drawing of map.
Important: The interaction with the map, add or remove markers and drawing elements, automatically allowed to redraw the map.
Use lockRedraw, to prohibit the redrawing of the map.
|
|
bool | blockAllInteractions |
| Allows you to block all user interactions with the map, markers, drawing elements. But you can still interact with the map using the API.
|
|
int | countParentLevels = 5 |
| Tiles for the specified number of parent levels will be loaded.
|
|
string | customProviderURL = "http://localhost/{zoom}/{y}/{x}" |
| URL of custom provider.
Support tokens:
{x} - tile x
{y} - tile y
{zoom} - zoom level
{quad} - uniquely identifies a single tile at a particular level of detail.
|
|
string | customTrafficProviderURL = "http://localhost/{zoom}/{y}/{x}" |
| URL of custom traffic provider.
Support tokens:
{x} - tile x
{y} - tile y
{zoom} - zoom level
{quad} - uniquely identifies a single tile at a particular level of detail.
|
|
Texture2D | defaultTileTexture |
| Texture displayed until the tile is not loaded.
|
|
bool | dispatchEvents = true |
| Specifies whether to dispatch the event.
|
|
bool | dragMarkerHoldingCTRL = false |
| Drag marker while holding CTRL.
|
|
Color | emptyColor = Color.gray |
| Color, which is used until the tile is not loaded, unless specified field defaultTileTexture.
|
|
int | height = 1024 |
| Map height in pixels.
|
|
bool | labels = true |
| Specifies whether to display the labels on the map.
|
|
string | language = "en" |
| Language of the labels on the map.
|
|
bool | lockRedraw = false |
| Prohibits drawing of maps.
Important: Do not forget to disable this restriction. Otherwise, the map will never be redrawn.
|
|
bool | needRedraw |
| A flag that indicates that need to redraw the map.
|
|
bool | notInteractUnderGUI = true |
| Not interact under the GUI.
|
|
string | mapType |
| ID of current map type.
|
|
OnlineMapsOSMOverpassServer | osmServer = OnlineMapsOSMOverpassServer.main |
| Server for requests to the Open Street Map Overpass API.
|
|
string | proxyURL = "https://service.infinity-code.com/redirect.php?" |
| URL of the proxy server used for WebGL platform.
|
|
bool | redrawOnPlay |
| A flag that indicates whether to redraw the map at startup.
|
|
bool | renderInThread = true |
| Render map in a separate thread. Recommended.
|
|
string | resourcesPath = "OnlineMapsTiles/{zoom}/{x}/{y}" |
| Template path in Resources, from where the tiles will be loaded. This field supports tokens.
|
|
string | streamingAssetsPath = "OnlineMapsTiles/{zoom}/{x}/{y}.png" |
| Template path in Streaming Assets, from where the tiles will be loaded. This field supports tokens.
|
|
OnlineMapsShowMarkerTooltip | showMarkerTooltip = OnlineMapsShowMarkerTooltip.onHover |
| Indicates when the marker will show tips.
|
|
OnlineMapsSource | source = OnlineMapsSource.Online |
| Specifies from where the tiles should be loaded (Online, Resources, Online and Resources).
|
|
bool | stopPlayingWhenScriptsCompile = true |
| Indicates that Unity need to stop playing when compiling scripts.
|
|
Texture2D | texture |
| Texture, which is used to draw the map.
To change this value, use OnlineMaps.SetTexture.
|
|
OnlineMapsTileManager | tileManager |
| Reference to tile manager.
|
|
OnlineMapsTooltipDrawerBase | tooltipDrawer |
| Reference to tooltip drawer.
|
|
Texture2D | tooltipBackgroundTexture |
| Background texture of tooltip.
|
|
bool | traffic = false |
| Specifies whether to draw traffic.
|
|
OnlineMapsTrafficProvider | trafficProvider |
| Provider of traffic jams.
|
|
string | trafficProviderID = "googlemaps" |
| ID of current traffic provider.
|
|
bool | useCurrentZoomTiles = false |
| Use only the current zoom level of the tiles.
|
|
bool | useProxy = true |
| Use a proxy server for WebGL?
|
|
bool | useSoftwareJPEGDecoder = false |
| Specifies is necessary to use software JPEG decoder. Use only if you have problems with hardware decoding of JPEG.
|
|
int | width = 1024 |
| Map width in pixels.
|
|
The main class. With it you can control the map.