All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ol.control.ZoomToExtentOptions Maven / Gradle / Ivy

There is a newer version: 8.5.0
Show newest version
/*******************************************************************************
 * Copyright 2014, 2017 gwt-ol3
 *
 * 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 ol.control;

import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;

/**
 * ZoomToExtent control options.
 *
 * @author sbaumhekel
 *
 */
@JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object")
public class ZoomToExtentOptions extends ControlOptions {

    /**
     * CSS class name. Default is "ol-zoom-extent".
     * @param className
     *            class name
     */
    @JsProperty
    public native void setClassName(String className);

    /**
     * The extent to zoom to. If undefined the validity extent of the view
     * projection is used.
     * @param extent
     *            extent
     */
    @JsProperty
    public native void setExtent(ol.Extent extent);

    /**
     * Text label to use for the button. Default is "E". Instead of text, also a
     * Node (e.g. a span element) can be used.
     * @param label
     *            label
     */
    @JsProperty
    public native void setLabel(String label);

    /**
     * Text label to use for the button tip. Default is "Zoom to extent".
     * @param tipLabel
     *            tip label
     */
    @JsProperty
    public native void setTipLabel(String tipLabel);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy