/* 
 * Copyright 2016 iserge.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.ol3cesium.client.olx.source;

import com.google.gwt.core.client.JavaScriptObject;

/**
 *
 * @author Serge Silaev aka iSergio <s.serge.b@gmail.com>
 */
public class TileUTFGridSourceOptions extends JavaScriptObject {
    protected TileUTFGridSourceOptions() {
        //
    }
    
    public static final native TileUTFGridSourceOptions create() /*-{
        return {};
    }-*/;
    
    /**
     * If true the TileUTFGrid source loads the tiles based on their "visibility". 
     * This improves the speed of response, but increases traffic. 
     * Note that if set to false, you need to pass true as opt_request to 
     * the forDataAtCoordinateAndResolution method otherwise no data will 
     * ever be loaded. Default is true.
     * @param preemptive 
     */
    public final native void setPreemptive(boolean preemptive) /*-{
        this.preemptive = preemptive;
    }-*/;

    /**
     * 
     * @param url Required.
     */
    public final native void setUrl(String url) /*-{
        this.url = url;
    }-*/;
}

@@ -988,24 +988,327 @@
    %0A    /**%0A
+     * Use JSONP with callback to load the TileJSON. Useful %0A     * when the server does not support CORS. Default is false.%0A     * @param jsonp JSONP with callback to load the TileJSON%0A     */%0A    public final native void setJSonP(boolean jsonp) /*-%7B%0A        this.jsonp = jsonp;%0A    %7D-*/;%0A    %0A    /**%0A
      * If tr
@@ -1787,16 +1787,20 @@
   %7D-*/;%0A
+    
 %0A    /**
@@ -1807,16 +1807,447 @@
 %0A     * 
+TileJSON configuration for this source. If not provided, url must be configured.%0A     * @param tileJSON configuration for this source%0A     */%0A    public final native void setTileJSON(JavaScriptObject tileJSON) /*-%7B%0A        this.tileJSON = tileJSON;%0A    %7D-*/;%0A%0A    /**%0A     * TileJSON endpoint that provides the configuration for this source. %0A     * Request will be made through JSONP. If not provided, tileJSON must be configured.
 %0A     * 

Add TileJSON option with OpenLayers 3.16.0