Example usage for com.google.gwt.maps.client Copyright Copyright

List of usage examples for com.google.gwt.maps.client Copyright Copyright

Introduction

In this page you can find the example usage for com.google.gwt.maps.client Copyright Copyright.

Prototype

public Copyright(int id, LatLngBounds bounds, int minZoomLevel, String text) 

Source Link

Document

Creates a new copyright object with the given attributes.

Usage

From source file:com.google.gwt.maps.sample.hellomaps.client.CustomMapTypeDemo.java

License:Apache License

public CustomMapTypeDemo() {

    VerticalPanel vertPanel = new VerticalPanel();
    vertPanel.setStyleName("hm-panel");

    map = new MapWidget(LatLng.newInstance(33.7814790, -84.3880580), 13);
    map.setSize("500px", "450px");

    CopyrightCollection myCopyright = new CopyrightCollection("");
    myCopyright.addCopyright(new Copyright(1,
            LatLngBounds.newInstance(LatLng.newInstance(34, -81), LatLng.newInstance(36, -79)), 10, ""));
    TileLayer tileLayer = new TileLayer(myCopyright, 10, 18) {
        @Override//from w  w  w . ja va 2s  . c om
        public double getOpacity() {
            return 1.0;
        }

        @Override
        public String getTileURL(Point tile, int zoomLevel) {
            return "http://www.google.com/apis/maps/documentation/examples/include/tile_crosshairs.png";
        }

        @Override
        public boolean isPng() {
            return true;
        }
    };

    MapType mapType = new MapType(new TileLayer[] { tileLayer }, new MercatorProjection(20), "MyMap");
    map.addMapType(mapType);
    map.addControl(new MapTypeControl());

    vertPanel.add(map);

    initWidget(vertPanel);
}

From source file:org.sigmah.client.map.BaseMapLayer.java

License:Open Source License

public static CopyrightCollection createCopyRights(BaseMap baseMap) {
    Copyright copyright = new Copyright(1,
            LatLngBounds.newInstance(LatLng.newInstance(-90, -180), LatLng.newInstance(90, 180)), 0,
            baseMap.getCopyright());//  w w  w .  ja v  a  2 s .co  m

    CopyrightCollection copyrights = new CopyrightCollection();
    copyrights.addCopyright(copyright);

    return copyrights;
}

From source file:org.sigmah.client.map.RgcTileLayer.java

License:Open Source License

public static Copyright createRgcCopyright() {
    return new Copyright(1,
            LatLngBounds.newInstance(LatLng.newInstance(-13.45599996, 12.18794184),
                    LatLng.newInstance(5.386098154, 31.306)),
            0, "Le Référentiel Géographique Commun (RGC)");
}