Cesium for Unity 1.19.0
Loading...
Searching...
No Matches
CesiumGoogleMapsTilesRasterOverlay.cs
Go to the documentation of this file.
1using Reinterop;
2using System.Collections;
3using System.Collections.Generic;
4using UnityEngine;
5
6namespace CesiumForUnity
7{
12 {
17
21 Roadmap,
22
32 };
33
38 {
43
48
53 }
54
59 {
65 Roadmap,
66
72
77 };
78
83 [ReinteropNativeImplementation(
84 "CesiumForUnityNative::CesiumGoogleMapTilesRasterOverlayImpl",
85 "CesiumGoogleMapTilesRasterOverlayImpl.h")]
86 [AddComponentMenu("Cesium/Cesium Google Map Tiles Raster Overlay")]
87 [IconAttribute("Packages/com.cesium.unity/Editor/Resources/Cesium-24x24.png")]
89 {
90
91 [SerializeField]
92 private string _apiKey = "";
93
97 public string apiKey
98 {
99 get => this._apiKey;
100 set
101 {
102 this._apiKey = value;
103 this.Refresh();
104 }
105 }
106
107 [SerializeField]
108 private GoogleMapTilesMapType _mapType = GoogleMapTilesMapType.Satellite;
109
114 {
115 get => this._mapType;
116 set
117 {
118 this._mapType = value;
119 this.Refresh();
120 }
121 }
122
123 [SerializeField]
124 private string _language = "en-US";
125
131 public string language
132 {
133 get => this._language;
134 set
135 {
136 this._language = value;
137 this.Refresh();
138 }
139 }
140
141 [SerializeField]
142 private string _region = "US";
143
148 public string region
149 {
150 get => this._region;
151 set
152 {
153 this._region = value;
154 this.Refresh();
155 }
156 }
157
158 [SerializeField]
159 private GoogleMapTilesScale _scale = GoogleMapTilesScale.ScaleFactor1x;
160
170 {
171 get => this._scale;
172 set
173 {
174 this._scale = value;
175 this.Refresh();
176 }
177 }
178
179 [SerializeField]
180 private bool _highDpi;
181
201 public bool highDpi
202 {
203 get => this._highDpi; set
204 {
205 this._highDpi = value;
206 this.Refresh();
207 }
208 }
209
210 [SerializeField]
211 private List<GoogleMapTilesLayerType> _layerTypes;
212
216 public List<GoogleMapTilesLayerType> layerTypes
217 {
218 get => this._layerTypes;
219 set
220 {
221 this._layerTypes = value;
222 this.Refresh();
223 }
224 }
225
226 [SerializeField]
227 private List<string> _styles;
228
245 public List<string> styles
246 {
247 get => this._styles;
248 set
249 {
250 this._styles = value;
251 this.Refresh();
252 }
253 }
254
255 [SerializeField]
256 private bool _overlay = false;
257
266 public bool overlay
267 {
268 get => this._overlay;
269 set
270 {
271 this._overlay = value;
272 this.Refresh();
273 }
274 }
275
277 protected override partial void AddToTileset(Cesium3DTileset tileset);
278
280 protected override partial void RemoveFromTileset(Cesium3DTileset tileset);
281 };
282}
A tileset in the 3D Tiles format.
A raster overlay that directly accesses Google Map Tiles (2D).
GoogleMapTilesScale scale
Scales-up the size of map elements (such as road labels), while retaining the tile size and coverage ...
override partial void RemoveFromTileset(Cesium3DTileset tileset)
override partial void AddToTileset(Cesium3DTileset tileset)
string language
An IETF language tag that specifies the language used to display information on the tiles.
bool highDpi
Specifies whether to return high-resolution tiles.
List< GoogleMapTilesLayerType > layerTypes
The layer types to be added to the map.
bool overlay
Specifies whether layerTypes are rendered as a separate overlay, or combined with the base imagery.
string region
A Common Locale Data Repository region identifier (two uppercase letters) that represents the physica...
List< string > styles
A list of JSON style objects that specify the appearance and detail level of map features such as roa...
A pyramid of 2D images - sometimes terabytes or more in size - that can be draped over a Cesium3DTile...
void Refresh()
Refreshes this overlay by calling RemoveFromTileset followed by AddToTileset.
GoogleMapTilesScale
The possible values of CesiumGoogleMapTilesRasterOverlay.scale.
@ ScaleFactor2x
Doubles label size and removes minor feature labels.
@ ScaleFactor4x
Quadruples label size and removes minor feature labels.
GoogleMapTilesMapType
The possible values of CesiumGoogleMapTilesRasterOverlay.mapType.
@ Roadmap
The standard Google Maps painted map tiles.
GoogleMapTilesLayerType
The possible values of CesiumGoogleMapTilesRasterOverlay.layerTypes.
@ Streetview
Shows Street View-enabled streets and locations using blue outlines on the map.
@ Traffic
Displays current traffic conditions.