Online Maps v3
Loading...
Searching...
No Matches
OnlineMapsBuildingBuiltIn Class Reference

Built-in buildings generator. More...

Inheritance diagram for OnlineMapsBuildingBuiltIn:
OnlineMapsBuildingBase

Public Member Functions

override void Dispose ()
 Dispose of building.
 
- Public Member Functions inherited from OnlineMapsBuildingBase
void LoadMeta (OnlineMapsOSMBase item)
 Loads the meta data from the XML.
 

Static Public Member Functions

static OnlineMapsBuildingBase Create (OnlineMapsBuildings container, OnlineMapsOSMWay way, Dictionary< string, OnlineMapsOSMNode > nodes)
 Creates a new building, based on Open Street Map.
 
static Color StringToColor (string str)
 Converts a string to a color.
 

Static Public Attributes

static Func< OnlineMapsOSMWay, Dictionary< string, OnlineMapsOSMNode >, OnlineMapsBuildingMaterialOnGetMaterial
 Allows you to intercept getting the material for the building to use the right one for your case.
 
- Static Public Attributes inherited from OnlineMapsBuildingBase
static List< int > roofIndices
 Indices of the roof vertices.
 

Additional Inherited Members

- Public Attributes inherited from OnlineMapsBuildingBase
Action< OnlineMapsBuildingBaseOnClick
 Events that occur when user click on the building.
 
Action< OnlineMapsBuildingBaseOnDispose
 Events that occur when dispose building.
 
Action< OnlineMapsBuildingBaseOnPress
 Events that occur when user press on the building.
 
Action< OnlineMapsBuildingBaseOnRelease
 Events that occur when user release on the building.
 
Bounds boundsCoords
 Geographical coordinates of the boundaries of the building.
 
Vector2 centerCoordinates
 Geographical coordinates of the center point.
 
string id
 ID of building.
 
Vector2 initialSizeInScene
 Initial size of building in scene.
 
float initialZoom
 Zoom, in which this building was created.
 
MetaInfo[] metaInfo
 Array of building meta key-value pair.
 
float perimeter
 Perimeter of building.
 
OnlineMapsOSMWay way
 Building way.
 
List< OnlineMapsOSMNodenodes
 Building nodes.
 
- Protected Types inherited from OnlineMapsBuildingBase
enum  RoofType { dome , flat }
 Type the building's roof. More...
 
- Protected Member Functions inherited from OnlineMapsBuildingBase
void OnBasePress ()
 This method is called when you press a building.
 
void OnBaseRelease ()
 This method is called when you release a building.
 
void OnMouseDown ()
 This method is called when you mouse down on a building.
 
void OnMouseUp ()
 This method is called when you mouse up on a building.
 
- Static Protected Member Functions inherited from OnlineMapsBuildingBase
static bool CheckIgnoredBuildings (OnlineMapsOSMWay way)
 Checks ignore the building.
 
static GameObject CreateGameObject (OnlineMapsBuildings container, string id)
 Creates a new child GameObject, with the specified name.
 
static List< Vector3 > GetLocalPoints (List< OnlineMapsOSMNode > nodes, OnlineMapsBuildings container)
 Converts a list of nodes into an list of points in Unity World Space.
 
- Protected Attributes inherited from OnlineMapsBuildingBase
Collider buildingCollider
 Collider of building.
 
bool hasErrors = false
 Indicates that the building has an error.
 

Detailed Description

Built-in buildings generator.

Member Function Documentation

◆ Create()

static OnlineMapsBuildingBase OnlineMapsBuildingBuiltIn.Create ( OnlineMapsBuildings container,
OnlineMapsOSMWay way,
Dictionary< string, OnlineMapsOSMNode > nodes )
static

Creates a new building, based on Open Street Map.

Parameters
containerReference to OnlineMapsBuildings.
wayWay of building.
nodesNodes obtained from Open Street Maps.
Returns
Building instance.

◆ StringToColor()

static Color OnlineMapsBuildingBuiltIn.StringToColor ( string str)
static

Converts a string to a color.

Parameters
strString
Returns
Color