Examples of MapType


Examples of com.buzzcoders.yasw.widgets.map.core.MapType

    super(browser, name, mapSupport);
  }
 
  @Override
    public Object function (Object[] arguments) {
    MapType newMapType = MapType.fromStringID((String) arguments[0]);
        getMapSupport().setMapType(newMapType);
        return null;
    }
View Full Code Here

Examples of com.facebook.swift.parser.model.MapType

            return type.getClass() == MapType.class;
        }

        public String convert(final ThriftType type, final boolean ignored)
        {
            final MapType mapType = MapType.class.cast(type);

            final String actualKeyType = TypeToJavaConverter.this.convert(mapType.getKeyType(), false);
            final String actualValueType = TypeToJavaConverter.this.convert(mapType.getValueType(), false);

            return String.format("Map<%s, %s>", actualKeyType, actualValueType);
        }
View Full Code Here

Examples of com.fasterxml.jackson.databind.type.MapType

   
    public void testMaps()
    {
        TypeFactory tf = TypeFactory.defaultInstance();
        JavaType t = tf.constructType(new TypeReference<LongValuedMap<String>>() { });
        MapType type = (MapType) t;
        assertSame(LongValuedMap.class, type.getRawClass());
        assertEquals(tf.constructType(String.class), type.getKeyType());
        assertEquals(tf.constructType(Long.class), type.getContentType());       
    }
View Full Code Here

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

        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,
            "MyMap");
        map.addMapType(mapType);
        RootPanel.get().add(map);
        map.setZoomLevel(10);
        map.setCurrentMapType(mapType);
View Full Code Here

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

        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,
            "MyMap");
        map.addMapType(mapType);
        RootPanel.get().add(map);
        map.setZoomLevel(10);
        map.setCurrentMapType(mapType);
View Full Code Here

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

            assertTrue("tileSize > 0", tileSize > 0);
            return false;
          }
        };

        MapType mapType = new MapType(new TileLayer[] {tileLayer}, projection,
            "MyMap");
        map.addMapType(mapType);
        RootPanel.get().add(map);
        map.setCurrentMapType(mapType);
View Full Code Here

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

    loadApi(new Runnable() {
      public void run() {
        initTileLayer();
        TileLayer[] layers = new TileLayer[1];
        layers[0] = initTileLayer();
        @SuppressWarnings("unused")
        MapType t = new MapType(layers, new MercatorProjection(1),
            "versionTestLayer");
      }
    }, true, MAPS_MIN_VERSION);
  }
View Full Code Here

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

      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);
View Full Code Here

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

      initListByMapType("Mapmaker: ", MapType.getMapmakerMapTypes());

      lb.addChangeHandler(new ChangeHandler() {
        public void onChange(ChangeEvent event) {
          String selection = lb.getItemText(lb.getSelectedIndex());
          MapType mt = mapTypes.get(selection);
          if (mt != null) {
            map.setCurrentMapType(mt);
          }
        }
      });
View Full Code Here

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

    Timer timer = new Timer() {

      @Override
      public void run() {
        // Exercise the minimum & maximum resolution entry points.
        MapType types[] = map.getMapTypes();
        for (MapType t : types) {
          int minResolution = t.getMinimumResolution();
          int maxResolution = t.getMaximumResolution();
          GWT.log("Map Type: " + t.getName(true) + " Min resolution: "
              + minResolution + " Max Resolution: " + maxResolution, null);
View Full Code Here
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.