Package org.wicketstuff.openlayers.api

Examples of org.wicketstuff.openlayers.api.Bounds


    //optionsLayer.put("type", "G_HYBRID_MAP");
    Layer layer = new GMap("GMap",
        GMAPS_KEY,"2", optionsLayer);
    layers.add(layer);
    HashMap<String, String> mapOptions = new HashMap<String, String>();
    Bounds boundsExtend = new Bounds(new LonLat(12.91, 55.52),
        new LonLat(13.29, 55.73));
    mapOptions.put("maxExtent", boundsExtend.getJSconstructor());
    OpenLayersMap map = new OpenLayersMap("map", true, layers, mapOptions);
    map.setCenter(new LonLat(10.2, 48.9), 13);
    add(map);
  }
View Full Code Here


    layers.add(layerOSMMapnik);
    layers.add(layerOSMTilesAtHome);   
    layers.add(layerOSMCycleMap);
   
    HashMap<String, String> mapOptions = new HashMap<String, String>();
    Bounds boundsExtend = new Bounds(new LonLat(-20037508.34, -20037508.34), new LonLat(20037508.34, 20037508.34));   
    mapOptions.put("maxExtent", boundsExtend.getJSconstructor());
    mapOptions.put("projection", "new OpenLayers.Projection('EPSG:900913')");
    mapOptions.put("displayProjection", "new OpenLayers.Projection('EPSG:4326')");
    mapOptions.put("units", "'meters'");
    mapOptions.put("maxResolution", "156543");
    mapOptions.put("numZoomLevels", "18");
View Full Code Here

    HashMap<String, String> optionsLayer = new HashMap<String, String>();
    // optionsLayer.put("type", "G_HYBRID_MAP");
    Layer layer = new GMap("GMap", GMAPS_KEY, "2", optionsLayer);
    layers.add(layer);
    HashMap<String, String> mapOptions = new HashMap<String, String>();
    Bounds boundsExtend = new Bounds(new LonLat(-20037508.34,-20037508.34), new LonLat(20037508.34,20037508.34));
    mapOptions.put("maxExtent", boundsExtend.getJSconstructor());
    OpenLayersMap map = new OpenLayersMap("map", true, layers, mapOptions);
    map.setCenter(new SphericalMercatorLonLat(10.2, 48.9), 13);
    add(map);
  }
View Full Code Here

    layers.add(layerOSMMapnik);
    layers.add(layerOSMTilesAtHome);
    layers.add(layerOSMCycleMap);

    HashMap<String, String> mapOptions = new HashMap<String, String>();
    Bounds boundsExtend = new Bounds(new LonLat(-20037508.34, -20037508.34), new LonLat(
      20037508.34, 20037508.34));
    mapOptions.put("maxExtent", boundsExtend.getJSconstructor());
    mapOptions.put("projection", "new OpenLayers.Projection('EPSG:900913')");
    mapOptions.put("displayProjection", "new OpenLayers.Projection('EPSG:4326')");
    mapOptions.put("units", "'meters'");
    mapOptions.put("maxResolution", "156543");
    mapOptions.put("numZoomLevels", "18");
View Full Code Here

TOP

Related Classes of org.wicketstuff.openlayers.api.Bounds

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.