Package org.wicketstuff.openlayers.api.layer

Examples of org.wicketstuff.openlayers.api.layer.GMap


            + wms.getJSconstructor() + ";\n");
        js.append(getJSinvoke("addLayer(wms" + wms.getId() + ","
            + wms.getId() + ")"));
      }
      if (layer instanceof GMap) {
        GMap gmap = (GMap) layer;
        js.append("var gmap" + gmap.getId() + " ="
            + gmap.getJSconstructor() + ";\n");
        js.append(getJSinvoke("addLayer(gmap" + gmap.getId() + ","
            + gmap.getId() + ")"));
      }
      if (layer instanceof OSM) {
        OSM osm = (OSM) layer;
        js.append("var osm" + osm.getId() + " ="
            + osm.getJSconstructor() + ";\n");
View Full Code Here


  public SimpleGoogleMapPage(final PageParameters parameters) {

    List<Layer> layers = new ArrayList<Layer>();
    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(12.91, 55.52),
        new LonLat(13.29, 55.73));
View Full Code Here

  {

    List<Layer> layers = new ArrayList<Layer>();
    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);
View Full Code Here

        js.append("var wms" + wms.getId() + " =" + wms.getJSconstructor() + ";\n");
        js.append(getJSinvoke("addLayer(wms" + wms.getId() + "," + wms.getId() + ")"));
      }
      if (layer instanceof GMap)
      {
        GMap gmap = (GMap)layer;
        js.append("var gmap" + gmap.getId() + " =" + gmap.getJSconstructor() + ";\n");
        js.append(getJSinvoke("addLayer(gmap" + gmap.getId() + "," + gmap.getId() + ")"));
      }
      if (layer instanceof OSM)
      {
        OSM osm = (OSM)layer;
        js.append("var osm" + osm.getId() + " =" + osm.getJSconstructor() + ";\n");
View Full Code Here

TOP

Related Classes of org.wicketstuff.openlayers.api.layer.GMap

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.