Cesium for Unity 1.15.2
Loading...
Searching...
No Matches
CesiumWebMapTileServiceRasterOverlay.cs
Go to the documentation of this file.
1using Reinterop;
2using System.Collections.Generic;
3using System;
4using UnityEngine;
5
6namespace CesiumForUnity
7{
23
28 [ReinteropNativeImplementation(
29 "CesiumForUnityNative::CesiumWebMapTileServiceRasterOverlayImpl",
30 "CesiumWebMapTileServiceRasterOverlayImpl.h")]
31 [AddComponentMenu("Cesium/Cesium Web Map Tile Service Raster Overlay")]
32 [IconAttribute("Packages/com.cesium.unity/Editor/Resources/Cesium-24x24.png")]
34 {
35 #region Fields
36
37 [SerializeField]
38 private string _baseUrl = "";
39
47 public string baseUrl
48 {
49 get => this._baseUrl;
50 set
51 {
52 this._baseUrl = value;
53 this.Refresh();
54 }
55 }
56
57 [SerializeField]
58 private string _layer = "";
59
63 public string layer
64 {
65 get => this._layer;
66 set
67 {
68 this._layer = value;
69 this.Refresh();
70 }
71 }
72
73 [SerializeField]
74 private string _style = "";
75
79 public string style
80 {
81 get => this._style;
82 set
83 {
84 this._style = value;
85 this.Refresh();
86 }
87 }
88
89 [SerializeField]
90 private string _format = "image/jpeg";
91
95 public string format
96 {
97 get => this._format;
98 set
99 {
100 this._format = value;
101 this.Refresh();
102 }
103 }
104
105 [SerializeField]
106 private string _tileMatrixSetID = "";
107
111 public string tileMatrixSetID
112 {
113 get => this._tileMatrixSetID;
114 set
115 {
116 this._tileMatrixSetID = value;
117 this.Refresh();
118 }
119 }
120
121 [SerializeField]
122 private string _tileMatrixSetLabelPrefix;
123
131 {
132 get => this._tileMatrixSetLabelPrefix;
133 set
134 {
135 this._tileMatrixSetLabelPrefix = value;
136 this.Refresh();
137 }
138 }
139
140
141 [SerializeField]
142 private bool _specifyTileMatrixSetLabels = false;
143
149 {
150 get => this._specifyTileMatrixSetLabels;
151 set
152 {
153 this._specifyTileMatrixSetLabels = value;
154 this.Refresh();
155 }
156 }
157
158 [SerializeField]
159 private List<string> _tileMatrixSetLabels;
160
165 public List<string> tileMatrixSetLabels
166 {
167 get => this._tileMatrixSetLabels;
168 set
169 {
170 this._tileMatrixSetLabels = value;
171 this.Refresh();
172 }
173 }
174
175 [SerializeField]
177
183 {
184 get => this._projection;
185 set
186 {
187 this._projection = value;
188 this.Refresh();
189 }
190 }
191
192 [SerializeField]
193 bool _specifyTilingScheme = false;
194
201 {
202 get => this._specifyTilingScheme;
203 set
204 {
205 this._specifyTilingScheme = value;
206 this.Refresh();
207 }
208 }
209
210 [SerializeField]
211 [Min(1)]
212 private int _rootTilesX = 1;
213
220 public int rootTilesX
221 {
222 get => this._rootTilesX;
223 set
224 {
225 this._rootTilesX = value;
226 this.Refresh();
227 }
228 }
229
230 [SerializeField]
231 [Min(1)]
232 private int _rootTilesY = 1;
233
240 public int rootTilesY
241 {
242 get => this._rootTilesY;
243 set
244 {
245 this._rootTilesY = value;
246 this.Refresh();
247 }
248 }
249
250 [SerializeField]
251 private double _rectangleWest = -180;
252
258 public double rectangleWest
259 {
260 get => this._rectangleWest;
261 set
262 {
263 this._rectangleWest = Math.Clamp(value, -180, 180);
264 this.Refresh();
265 }
266 }
267
268 [SerializeField]
269 private double _rectangleSouth = -90;
270
276 public double rectangleSouth
277 {
278 get => this._rectangleSouth;
279 set
280 {
281 this._rectangleSouth = Math.Clamp(value, -90, 90);
282 this.Refresh();
283 }
284 }
285
286 [SerializeField]
287 private double _rectangleEast = 180;
288
294 public double rectangleEast
295 {
296 get => this._rectangleEast;
297 set
298 {
299 this._rectangleEast = Math.Clamp(value, -180, 180);
300 this.Refresh();
301 }
302 }
303
304 [SerializeField]
305 private double _rectangleNorth = 90;
306
312 public double rectangleNorth
313 {
314 get => this._rectangleNorth;
315 set
316 {
317 this._rectangleNorth = Math.Clamp(value, -90, 90);
318 this.Refresh();
319 }
320 }
321
322 [SerializeField]
323 private bool _specifyZoomLevels = false;
324
331 {
332 get => this._specifyZoomLevels;
333 set
334 {
335 this._specifyZoomLevels = value;
336 this.Refresh();
337 }
338 }
339
340 [SerializeField]
341 private int _minimumLevel = 0;
342
347 public int minimumLevel
348 {
349 get => this._minimumLevel;
350 set
351 {
352 this._minimumLevel = value;
353 this.Refresh();
354 }
355 }
356
357 [SerializeField]
358 private int _maximumLevel = 25;
359
364 public int maximumLevel
365 {
366 get => this._maximumLevel;
367 set
368 {
369 this._maximumLevel = value;
370 this.Refresh();
371 }
372 }
373
374 [SerializeField]
375 private int _tileWidth = 256;
376
380 public int tileWidth
381 {
382 get => this._tileWidth;
383 set
384 {
385 this._tileWidth = value;
386 this.Refresh();
387 }
388 }
389
390 [SerializeField]
391 private int _tileHeight = 256;
392
396 public int tileHeight
397 {
398 get => this._tileHeight;
399 set
400 {
401 this._tileHeight = value;
402 this.Refresh();
403 }
404 }
405
406 #endregion
407
409 protected override partial void AddToTileset(Cesium3DTileset tileset);
410
412 protected override partial void RemoveFromTileset(Cesium3DTileset tileset);
413 }
414}
A tileset in the 3D Tiles format.
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.
A raster overlay that directly accesses a Web Map Tile Service (WMTS) server.
double rectangleSouth
The south boundary of the bounding rectangle used for the quadtree tiling scheme.
CesiumWebMapTileServiceRasterOverlayProjection projection
The type of projection used to project the WMTS imagery onto the globe.
int minimumLevel
The minimum level-of-detail supported by the imagery provider.
string baseUrl
The base URL of the Web Map Tile Service (WMTS).
double rectangleWest
The west boundary of the bounding rectangle used for the quadtree tiling scheme.
double rectangleNorth
The north boundary of the bounding rectangle used for the quadtree tiling scheme.
string format
The MIME type for images to retrieve from the server.
int rootTilesX
The number of tiles corresponding to TileCol, also known as TileMatrixWidth.
string tileMatrixSetLabelPrefix
The prefix to use for the tile matrix set labels.
override partial void RemoveFromTileset(Cesium3DTileset tileset)
bool specifyTilingScheme
Set this to true to specify the quadtree tiling scheme according to the specified projection,...
double rectangleEast
The east boundary of the bounding rectangle used for the quadtree tiling scheme.
bool specifyZoomLevels
Set this to true to directly specify the minimum and maximum zoom levels available from the server.
List< string > tileMatrixSetLabels
The manually specified tile matrix set labels.
int rootTilesY
The number of tiles corresponding to TileRow, also known as TileMatrixHeight.
int maximumLevel
The maximum level-of-detail supported by the imagery provider.
bool specifyTileMatrixSetLabels
Set this to true to manually specify the tile matrix set labels.
string tileMatrixSetID
The identifier of the TileMatrixSet to use for WMTS requests.
override partial void AddToTileset(Cesium3DTileset tileset)
CesiumWebMapTileServiceRasterOverlayProjection
Specifies the type of projection used for projecting a Web Map Tile Service raster overlay.
@ WebMercator
The raster overlay is projected using Web Mercator.
@ Geographic
The raster overlay is projected using a geographic projection.