Exemplo n.º 1
0
 /// <summary>
 /// Writes a value for the <c>image</c> property as a <c>uri</c> value.  The <c>image</c> property specifies the image to display on the surface.
 /// </summary>
 /// <param name="uri">The URI of the data.  The provided ICesiumUriResolver will be used to build the final URI embedded in the document.</param>
 /// <param name="resolver">An ICesiumUriResolver used to build the final URI that will be embedded in the document.</param>
 public void WriteImageProperty(string uri, ICesiumUriResolver resolver)
 {
     using (var writer = OpenImageProperty())
     {
         writer.WriteUri(uri, resolver);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Writes a value for the <c>uri</c> property as a <c>uri</c> value. The <c>uri</c> property specifies the URI of a 3D tiles tileset. For broadest client compatibility, the URI should be accessible via Cross-Origin Resource Sharing (CORS). This value must be specified in order for the client to display graphics.
 /// </summary>
 /// <param name="uri">The URI of the data. The provided ICesiumUriResolver will be used to build the final URI embedded in the document.</param>
 /// <param name="resolver">An ICesiumUriResolver used to build the final URI that will be embedded in the document.</param>
 public void WriteUriProperty(Uri uri, ICesiumUriResolver resolver)
 {
     using (var writer = OpenUriProperty())
     {
         writer.WriteUri(uri, resolver);
     }
 }
Exemplo n.º 3
0
        /// <summary>
        /// Writes the <code>uri</code> property.  The <code>uri</code> property specifies the URI value.
        /// </summary>
        /// <param name="uri">The URI of the data.  The provided ICesiumUriResolver will be used to build the final URI embedded in the document.</param>
        /// <param name="resolver">An ICesiumUriResolver used to build the final URI that will be embedded in the document.</param>
        public void WriteUri(string uri, ICesiumUriResolver resolver)
        {
            const string PropertyName = UriPropertyName;

            if (ForceInterval)
            {
                OpenIntervalIfNecessary();
            }
            if (IsInterval)
            {
                Output.WritePropertyName(PropertyName);
            }
            Output.WriteValue(resolver.ResolveUri(uri));
        }
Exemplo n.º 4
0
 /// <summary>
 /// Writes the <code>uri</code> property.  The <code>uri</code> property specifies the URI value.
 /// </summary>
 /// <param name="uri">The URI of the data.  The provided ICesiumUriResolver will be used to build the final URI embedded in the document.</param>
 /// <param name="resolver">An ICesiumUriResolver used to build the final URI that will be embedded in the document.</param>
 public void WriteUri(Uri uri, ICesiumUriResolver resolver)
 {
     WriteUri(uri.ToString(), resolver);
 }