public void Start() { if (depth_ == 0) { Vector3 meshSize = GetComponent <MeshFilter>().sharedMesh.bounds.size; Vector2 mapSize = new Vector2(meshSize.x, meshSize.z); onlineTexture = null; if (GetComponent <WMSTexture> () != null) { onlineTexture = this.GetComponent <WMSTexture> (); } else if (GetComponent <BingMapsTexture> () != null) { onlineTexture = this.GetComponent <BingMapsTexture> (); } nodeID = "0"; // Create the root mesh. gameObject.GetComponent <MeshFilter> ().mesh = PlanesFactory.CreateHorizontalPlane(mapSize, vertexResolution); } if (onlineTexture != null) { onlineTexture.RequestTexture(nodeID); } }
public void CopyTo(OnlineTexture copy) { copy.request_ = request_; // This forces inherited component to reload the texture. copy.textureLoaded = false; InnerCopyTo(copy); }
protected override void InnerCopyTo(OnlineTexture copy) { BingMapsTexture target = (BingMapsTexture)copy; target.serverURL = serverURL; target.initialSector = initialSector; target.latitude = latitude; target.longitude = longitude; target.initialZoom = initialZoom; }
protected override void InnerCopyTo(OnlineTexture copy) { GoogleMapsTexture target = (GoogleMapsTexture)copy; target.serverUrl = serverUrl; target.initialSector = initialSector; target.latitude = latitude; target.longitude = longitude; target.initialZoom = initialZoom; }
protected override void InnerCopyTo(OnlineTexture copy) { WMSTexture target = (WMSTexture)copy; target.serverURL = serverURL; target.wmsRequestID = wmsRequestID; target.keepBoundingBoxRatio = keepBoundingBoxRatio; target.bottomLeftCoordinates = bottomLeftCoordinates; target.topRightCoordinates = topRightCoordinates; target.selectedLayers = selectedLayers; target.wmsVersion = wmsVersion; target.SRS = SRS; }
protected abstract void InnerCopyTo(OnlineTexture copy);