Package org.geomajas.layer

Examples of org.geomajas.layer.Layer


    Assert.assertNotNull(configurationService.getLayerExtraInfo(layerInfo, "one", ExtraString.class));
  }

  @Test
  public void getVectorLayerTest() throws Exception {
    Layer layer;
    Assert.assertNull(configurationService.getRasterLayer(VECTOR_LAYER_ID));
    layer = configurationService.getLayer(VECTOR_LAYER_ID);
    Assert.assertNotNull(layer);
    Assert.assertTrue(layer instanceof VectorLayer);
    layer = configurationService.getVectorLayer(VECTOR_LAYER_ID);
View Full Code Here


  @Autowired
  private CommandDispatcher dispatcher;

  @Test
  public void testConvertMaxExtent() throws Exception {
    Layer layer = configurationService.getLayer("countries");
    Bbox configMaxExtent = layer.getLayerInfo().getMaxExtent();
    Assert.assertEquals(-85.05112877980659, configMaxExtent.getX(), DOUBLE_TOLERANCE);
    Assert.assertEquals(-85.05112877980659, configMaxExtent.getY(), DOUBLE_TOLERANCE);
    Assert.assertEquals(170.102257, configMaxExtent.getWidth(), DOUBLE_TOLERANCE);
    Assert.assertEquals(170.102257, configMaxExtent.getHeight(), DOUBLE_TOLERANCE);
View Full Code Here

    verifyMap(appInfo.getMaps().get(2));
  }

  private void verifyMap(ClientMapInfo mapInfo) {
    // first test base assumptions
    Layer layer = configurationService.getLayer("countries");
    Bbox configMaxExtent = layer.getLayerInfo().getMaxExtent();
    Assert.assertEquals(-85.05112877980659, configMaxExtent.getX(), DOUBLE_TOLERANCE);
    Assert.assertEquals(-85.05112877980659, configMaxExtent.getY(), DOUBLE_TOLERANCE);
    Assert.assertEquals(170.102257, configMaxExtent.getWidth(), DOUBLE_TOLERANCE);
    Assert.assertEquals(170.102257, configMaxExtent.getHeight(), DOUBLE_TOLERANCE);
View Full Code Here

    return geoService.getCrs2(crs);
  }

  /** {@inheritDoc} */
  public void invalidateLayer(String layerId) throws GeomajasException {
    Layer layer = null;
    if (null != layerId) {
      layer = getLayer(layerId);
    }
    invalidateLayer(layer);
  }
View Full Code Here

TOP

Related Classes of org.geomajas.layer.Layer

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.