You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGES.md
+1
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ Change Log
6
6
* Added support for the layer.json `parentUrl` property in `CesiumTerrainProvider` to allow for compositing of tilesets.
7
7
* Fixed a bug that caused KML ground overlays to appear distorted when rotation was applied. [#5914](https://github.com/AnalyticalGraphicsInc/cesium/issues/5914)
8
8
* Adds `invertClassification` and `invertClassificationColor` to `Scene`. When `invertClassification` is `true`, any 3D Tiles geometry that is not classified by a `ClassificationPrimitive` or `GroundPrimitive` will have its color multiplied by `invertClassificationColor`. [#5836](https://github.com/AnalyticalGraphicsInc/cesium/pull/5836)
9
+
* Added `customTags` property to the UrlTemplateImageryProvider to allow custom keywords in the template URL. [#5696](https://github.com/AnalyticalGraphicsInc/cesium/pull/5696)
Copy file name to clipboardexpand all lines: Source/Scene/UrlTemplateImageryProvider.js
+69-34
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,38 @@ define([
44
44
ImageryProvider){
45
45
'use strict';
46
46
47
+
vartags={
48
+
'{x}': xTag,
49
+
'{y}': yTag,
50
+
'{z}': zTag,
51
+
'{s}': sTag,
52
+
'{reverseX}': reverseXTag,
53
+
'{reverseY}': reverseYTag,
54
+
'{reverseZ}': reverseZTag,
55
+
'{westDegrees}': westDegreesTag,
56
+
'{southDegrees}': southDegreesTag,
57
+
'{eastDegrees}': eastDegreesTag,
58
+
'{northDegrees}': northDegreesTag,
59
+
'{westProjected}': westProjectedTag,
60
+
'{southProjected}': southProjectedTag,
61
+
'{eastProjected}': eastProjectedTag,
62
+
'{northProjected}': northProjectedTag,
63
+
'{width}': widthTag,
64
+
'{height}': heightTag
65
+
};
66
+
67
+
varpickFeaturesTags=combine(tags,{
68
+
'{i}' : iTag,
69
+
'{j}' : jTag,
70
+
'{reverseI}' : reverseITag,
71
+
'{reverseJ}' : reverseJTag,
72
+
'{longitudeDegrees}' : longitudeDegreesTag,
73
+
'{latitudeDegrees}' : latitudeDegreesTag,
74
+
'{longitudeProjected}' : longitudeProjectedTag,
75
+
'{latitudeProjected}' : latitudeProjectedTag,
76
+
'{format}' : formatTag
77
+
});
78
+
47
79
/**
48
80
* Provides imagery by requesting tiles using a specified URL template.
49
81
*
@@ -132,6 +164,7 @@ define([
132
164
* source does not support picking features or if you don't want this provider's features to be pickable. Note
133
165
* that this can be dynamically overridden by modifying the {@link UriTemplateImageryProvider#enablePickFeatures}
134
166
* property.
167
+
* @param {Object} [options.customTags] Allow to replace custom keywords in the URL template. The object must have strings as keys and functions as values.
0 commit comments