Skip to content

Commit b583e16

Browse files
committed
After review fixes
1 parent 086e931 commit b583e16

File tree

2 files changed

+37
-37
lines changed

2 files changed

+37
-37
lines changed

Editor/CesiumWebMapTileServiceRasterOverlayEditor.cs

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,42 @@ private void DrawWebMapTileServiceProperties()
6565
{
6666
GUIContent baseUrlContent = new GUIContent(
6767
"Base URL",
68-
"The base URL of the Web Map Service (WMS)." +
68+
"The base URL of the Web Map Tile Service (WMTS)." +
6969
"\n\n" +
7070
"e.g." +
7171
"\n\n" +
72-
"https://services.ga.gov.au/gis/services/NM_Culture_and_Infrastructure/MapServer/WMSServer");
72+
"https://tile.openstreetmap.org/{TileMatrix}/{TileCol}/{TileRow}.png");
7373
EditorGUILayout.DelayedTextField(this._baseUrl, baseUrlContent);
74+
75+
GUIContent layerContent = new GUIContent(
76+
"Layer",
77+
"The layer name for WMTS requests.");
78+
EditorGUILayout.DelayedTextField(this._layer, layerContent);
79+
80+
GUIContent styleContent = new GUIContent(
81+
"Style",
82+
"The style name for WMTS requests.");
83+
EditorGUILayout.DelayedTextField(this._style, styleContent);
84+
85+
GUIContent formatContent = new GUIContent(
86+
"Format",
87+
"The MIME type for images to retrieve from the server.");
88+
EditorGUILayout.DelayedTextField(this._format, formatContent);
89+
90+
GUIContent tileMatrixSetIDContent = new GUIContent(
91+
"Tile Matrix Set ID",
92+
"The tile matrix set identifier for WMTS requests.");
93+
EditorGUILayout.DelayedTextField(this._tileMatrixSetID, tileMatrixSetIDContent);
94+
95+
GUIContent useGeographicProjectionContent = new GUIContent(
96+
"Use Geographic Projection",
97+
"If true, the overlay will be projected using a geographic projection. " +
98+
"If false, the overlay will be projected using a web mercator projection.");
99+
EditorGUILayout.PropertyField(this._useGeographicProjection, useGeographicProjectionContent);
74100

75101
GUIContent tileWidthContent = new GUIContent(
76102
"Tile Width",
77-
"Image width.");
103+
"The width of the image tiles in pixels.");
78104
CesiumInspectorGUI.ClampedIntField(
79105
this._tileWidth,
80106
64,
@@ -83,7 +109,7 @@ private void DrawWebMapTileServiceProperties()
83109

84110
GUIContent tileHeightContent = new GUIContent(
85111
"Tile Height",
86-
"Image height.");
112+
"The height of the image tiles in pixels.");
87113
CesiumInspectorGUI.ClampedIntField(
88114
this._tileHeight,
89115
64,
@@ -103,32 +129,6 @@ private void DrawWebMapTileServiceProperties()
103129
"Maximum Level",
104130
"Maximum zoom level.");
105131
EditorGUILayout.PropertyField(this._maximumLevel, maximumLevelContent);
106-
107-
GUIContent formatContent = new GUIContent(
108-
"Format",
109-
"The MIME type for images to retrieve from the server, default value is \"image/jpeg\".");
110-
EditorGUILayout.DelayedTextField(this._format, formatContent);
111-
112-
GUIContent styleContent = new GUIContent(
113-
"Style",
114-
"The style name for WMTS requests, default value is \"default\".");
115-
EditorGUILayout.DelayedTextField(this._style, styleContent);
116-
117-
GUIContent layerContent = new GUIContent(
118-
"Layer",
119-
"The layer name for WMTS requests.");
120-
EditorGUILayout.DelayedTextField(this._layer, layerContent);
121-
122-
GUIContent tileMatrixSetIDContent = new GUIContent(
123-
"Tile Matrix Set ID",
124-
"The tile matrix set identifier for WMTS requests.");
125-
EditorGUILayout.DelayedTextField(this._tileMatrixSetID, tileMatrixSetIDContent);
126-
127-
GUIContent useGeographicProjectionContent = new GUIContent(
128-
"Use Geographic Projection",
129-
"If true, the overlay will be projected using a geographic projection. " +
130-
"If false, the overlay will be projected using a web mercator projection.");
131-
EditorGUILayout.PropertyField(this._useGeographicProjection, useGeographicProjectionContent);
132132
}
133133

134134
private void DrawRasterOverlayProperties()

Runtime/CesiumWebMapTileServiceRasterOverlay.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public partial class CesiumWebMapTileServiceRasterOverlay : CesiumRasterOverlay
2121
/// </summary>
2222
/// <remarks>
2323
/// This URL should not include query parameters. For example:
24-
/// https://services.ga.gov.au/gis/services/NM_Culture_and_Infrastructure/MapServer/WMTSServer
24+
/// https://tile.openstreetmap.org/{TileMatrix}/{TileCol}/{TileRow}.png
2525
/// </remarks>
2626
public string baseUrl
2727
{
@@ -48,7 +48,7 @@ public string layer
4848
}
4949
}
5050

51-
[SerializeField] private string _style = "default";
51+
[SerializeField] private string _style = "";
5252

5353
/// <summary>
5454
/// The style name for WMTS requests, default value is "default".
@@ -66,7 +66,7 @@ public string style
6666
[SerializeField] private string _format = "image/jpeg";
6767

6868
/// <summary>
69-
/// The MIME type for images to retrieve from the server, default value is "image/jpeg".
69+
/// The MIME type for images to retrieve from the server. The default value is "image/jpeg".
7070
/// </summary>
7171
public string format
7272
{
@@ -111,7 +111,7 @@ public bool useGeographicProjection
111111
[SerializeField] private int _minimumLevel = 0;
112112

113113
/// <summary>
114-
/// The minimum level-of-detail supported by the imagery provider, default value is 0.
114+
/// The minimum level-of-detail supported by the imagery provider.
115115
/// </summary>
116116
public int minimumLevel
117117
{
@@ -126,7 +126,7 @@ public int minimumLevel
126126
[SerializeField] private int _maximumLevel = 25;
127127

128128
/// <summary>
129-
/// The maximum level-of-detail supported by the imagery provider, default value is 25.
129+
/// The maximum level-of-detail supported by the imagery provider.
130130
/// </summary>
131131
public int maximumLevel
132132
{
@@ -141,7 +141,7 @@ public int maximumLevel
141141
[SerializeField] private int _tileWidth = 256;
142142

143143
/// <summary>
144-
/// Pixel width of image tiles, default value is 256.
144+
/// The pixel width of the image tiles.
145145
/// </summary>
146146
public int tileWidth
147147
{
@@ -156,7 +156,7 @@ public int tileWidth
156156
[SerializeField] private int _tileHeight = 256;
157157

158158
/// <summary>
159-
/// Pixel height of image tiles, default value is 256.
159+
/// The pixel height of the image tiles.
160160
/// </summary>
161161
public int tileHeight
162162
{

0 commit comments

Comments
 (0)