Package org.gwtopenmaps.openlayers.client.layer

Source Code of org.gwtopenmaps.openlayers.client.layer.OSM

/**
*
*   Copyright 2013 sourceforge.
*
*   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.gwtopenmaps.openlayers.client.layer;

import org.gwtopenmaps.openlayers.client.util.JSObject;
import org.gwtopenmaps.openlayers.client.util.JStringArray;


/**
* The javascript implementation of the class OSM is defined in a small add-on
* javascript library for OpenStreetMap.
*
* See: http://openstreetmap.org/openlayers/OpenStreetMap.js
*/
public class OSM extends Layer
{

    public static OSM THIS(String name, String url, OSMOptions options)
    {
        return new OSM(OSMImpl.OSM(name, url, options.getJSObject()));
    }

    public static OSM Mapnik(String name)
    {
        return new OSM(OSMImpl.Mapnik(name));
    }

    public static OSM Mapnik(String name, OSMOptions options)
    {
        return new OSM(OSMImpl.Mapnik(name, options.getJSObject()));
    }

    public static OSM CycleMap(String name)
    {
        return new OSM(OSMImpl.CycleMap(name));
    }

    public static OSM CycleMap(String name, OSMOptions options)
    {
        return new OSM(OSMImpl.CycleMap(name, options.getJSObject()));
    }

    public static OSM Maplint(String name)
    {
        return new OSM(OSMImpl.Maplint(name));
    }

    public static OSM Maplint(String name, OSMOptions options)
    {
        return new OSM(OSMImpl.Maplint(name, options.getJSObject()));
    }

    protected OSM(JSObject element)
    {
        super(element);
    }

    public OSM()
    {
        super(OSMImpl.OSM());
    }

    public OSM(String name, String url, OSMOptions options)
    {
        super(OSMImpl.OSM(name, url, options.getJSObject()));
    }

    public OSM(String name, String[] urls, OSMOptions options) {
        this(OSMImpl.OSM(name, new JStringArray(urls).getJSObject(), options.getJSObject()));
    }


}
TOP

Related Classes of org.gwtopenmaps.openlayers.client.layer.OSM

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.