Package com.google.gwt.maps.client

Examples of com.google.gwt.maps.client.TileLayer


* Tests the Projection classes.
*/
public class ProjectionTest extends MapsTestCase {

  private static TileLayer initTileLayer() {
    TileLayer tileLayer;
    tileLayer = new TileLayer(new CopyrightCollection("gwt-maps Unit Test"), 1,
        20) {
      @Override
      public double getOpacity() {
        return 1.0;
      }
View Full Code Here


   * Test calling the MercatorProjection methods.
   */
  public void testMercatorProjection() {
    loadApi(new Runnable() {
      public void run() {
        TileLayer tileLayer = initTileLayer();
        MapWidget map = new MapWidget();
        map.setSize("300px", "300px");
        Projection projection = new MercatorProjection(20);
        assertNotNull("new MercatorProjection(20)", projection);
        MapType mapType = new MapType(new TileLayer[] {tileLayer}, projection,
View Full Code Here

   * Create a simple projection and add it to a map.
   */
  public void testProjectionDefault() {
    loadApi(new Runnable() {
      public void run() {
        TileLayer tileLayer = initTileLayer();
        MapWidget map = new MapWidget();
        map.setSize("300px", "300px");
        Projection projection = new MercatorProjection(20);
        assertNotNull("new MercatorProjection(20)", projection);
        MapType mapType = new MapType(new TileLayer[] {tileLayer}, projection,
View Full Code Here

   * Subclass the Projection abstract class and add it to a map.
   */
  public void testSubclassProjection() {
    loadApi(new Runnable() {
      public void run() {
        TileLayer tileLayer = initTileLayer();
        MapWidget map = new MapWidget();
        map.setSize("300px", "300px");
        Projection projection = new Projection() {

          @Override
View Full Code Here

*/
public class MinimumMapVersionTest extends MapsTestCase {
  private static final String MAPS_MIN_VERSION = "2.147";

  private TileLayer initTileLayer() {
    TileLayer tileLayer = null;

    tileLayer = new TileLayer(new CopyrightCollection("gwt-maps Unit Test"), 1,
        20) {
      @Override
      public double getOpacity() {
        return 1.0;
      }
View Full Code Here

    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
      public double getOpacity() {
        return 1.0;
      }
View Full Code Here

TOP

Related Classes of com.google.gwt.maps.client.TileLayer

Copyright © 2018 www.massapicom. 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.