Examples of GLatLngBounds


Examples of org.wicketstuff.gmap.api.GLatLngBounds

        map.setCenter(new GLatLng(40.740, -74.18));
        map.setZoom(12);

        // ground overlay

        GLatLngBounds boundaries = new GLatLngBounds(new GLatLng(40.716216, -74.213393), new GLatLng(40.765641, -74.139235));
        GGroundOverlay oldmap = new GGroundOverlay("http://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg", boundaries);
        map.addOverlay(oldmap);
        add(map);
    }
View Full Code Here

Examples of org.wicketstuff.gmap.api.GLatLngBounds

                        }

                        @Override
                        public String convertToString(Object value, Locale locale)
                        {
                            GLatLngBounds bounds = (GLatLngBounds) value;

                            StringBuffer buffer = new StringBuffer();
                            buffer.append("NE (");
                            buffer.append(bounds.getNE().getLat());
                            buffer.append(",");
                            buffer.append(bounds.getNE().getLng());
                            buffer.append(")\nSW (");
                            buffer.append(bounds.getSW().getLat());
                            buffer.append(",");
                            buffer.append(bounds.getSW().getLng());
                            buffer.append(")");
                            return buffer.toString();
                        }
                    };
                }
View Full Code Here

Examples of org.wicketstuff.gmap.api.GLatLngBounds

    final FeedbackPanel feedback = new FeedbackPanel("feedback");
    add(feedback);
    feedback.setOutputMarkupId(true);

    GMap map = new GMap("topPanel");
    GRectangle rectangle = new GRectangle(new GLatLngBounds(new GLatLng(37.35, -121.9), new GLatLng(37.45, -121.8)), "#000000", 4, 0.7f, "#E9601A", 0.7f);
    rectangle.setEditable(true);
    rectangle.setDraggable(true);
    GEventHandler eventHandler = new GEventHandler()
    {
      @Override
View Full Code Here

Examples of wicket.contrib.gmap.api.GLatLngBounds

    map.setCenter(new GLatLng(40.740, -74.18));
    map.setZoom(12);

    // ground overlay

    GLatLngBounds boundaries = new GLatLngBounds(new GLatLng(40.716216, -74.213393),
        new GLatLng(40.765641, -74.139235));
    GGroundOverlay oldmap = new GGroundOverlay(
        "http://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg", boundaries);
    map.addOverlay(oldmap);
    add(map);
View Full Code Here

Examples of wicket.contrib.gmap.api.GLatLngBounds

              throw new UnsupportedOperationException();
            }

            public String convertToString(Object value, Locale locale)
            {
              GLatLngBounds bounds = (GLatLngBounds)value;

              StringBuffer buffer = new StringBuffer();
              buffer.append("NE (");
              buffer.append(bounds.getNE().getLat());
              buffer.append(",");
              buffer.append(bounds.getNE().getLng());
              buffer.append(")\nSW (");
              buffer.append(bounds.getSW().getLat());
              buffer.append(",");
              buffer.append(bounds.getSW().getLng());
              buffer.append(")");
              return buffer.toString();
            }
          };
        }
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.