Examples of LatLng


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

    super(browser, name, mapSupport);
  }

  @Override
    public Object function (Object[] arguments) {
    LatLng newPosition = GMapUtils.getPosition(arguments);
        int markerIdx = ((Double) arguments[2]).intValue();
        getMapSupport().updateMarkerPosition(markerIdx, newPosition);
        return null;
    }
View Full Code Here

Examples of com.gads.model.LatLng

        NodeList n2 = doc.getElementsByTagName("lng");
        Element nn = (Element)n2.item(0);
        String st1 = nn.getFirstChild().getNodeValue();

        return new LatLng(Double.parseDouble(st),Double.parseDouble(st1));
    }
View Full Code Here

Examples of com.google.code.geocoder.model.LatLng

            GeocoderRequest req = new GeocoderRequest();
            req.setLanguage(endpoint.getLanguage());

            String lat = ObjectHelper.before(latlng, ",");
            String lng = ObjectHelper.after(latlng, ",");
            req.setLocation(new LatLng(lat, lng));

            LOG.debug("Geocode for lat/lng {}", latlng);
            GeocodeResponse res = geocoder.geocode(req);
            LOG.debug("Geocode response {}", res);
View Full Code Here

Examples of com.google.gwt.maps.client.base.LatLng

    private void sortStoreListOnLocation() {
        Collections.sort(stores, new Comparator<Store>() {
            @Override
            public int compare(Store one, Store two) {
                LatLng storeOneLocation = LatLng.newInstance(one.getLatitude(), one.getLongitude());
                LatLng storeTwoLocation = LatLng.newInstance(two.getLatitude(), two.getLongitude());

                double distanceOne = SphericalUtils.computeDistanceBetween(storeOneLocation, here);
                double distanceTwo = SphericalUtils.computeDistanceBetween(storeTwoLocation, here);

                return distanceOne < distanceTwo ? -1 : distanceOne == distanceTwo ? 0 : 1;
View Full Code Here

Examples of com.google.gwt.maps.client.geom.LatLng

   * Returns the point corresponding to the decoded address.
   *
   * @return the point corresponding to the decoded address.
   */
  public LatLng getPoint() {
    return new LatLng(nativeGetLat(jsoPeer), nativeGetLng(jsoPeer));
  }
View Full Code Here

Examples of com.google.gwt.maps.client.geom.LatLng

   * Notifies the map of a change of the size of its container. Call this method
   * after the size of the container DOM object has changed, so that the map can
   * adjust itself to fit the new size.
   */
  public void checkResize() {
    LatLng center = getCenter();
    MapImpl.impl.checkResize(jsoPeer);
    setCenter(center);
  }
View Full Code Here

Examples of com.google.gwt.maps.client.geom.LatLng

            Log.debug("In CollegeBound");
            double latitude = Double.parseDouble(getParam("latitude"));

            double longitude = Double.parseDouble(getParam("longitude"));

            LatLng collegeCenter = new LatLng(latitude, longitude);

            if (latitude == -1 && longitude == -1) {
                map = new MapWidget();
            } else {
                map = new MapWidget(collegeCenter, DEFAULT_ZOOM);
View Full Code Here

Examples of com.google.gwt.maps.client.geom.LatLng

       
       
    }

    private Marker createMarker(final School school) {
        LatLng point = new LatLng(school.getLatitude(), school
                .getLongitude());
        if (point.getLatitude() == -1 && point.getLongitude() == -1) {
            return null;
        }

        final Marker marker = new Marker(point);
        marker.addMarkerClickListener(new MarkerClickListener() {
View Full Code Here

Examples of com.google.gwt.maps.client.geom.LatLng

  {
    ArrayList<Vertex> vertices = new ArrayList<Vertex>();
    if( polyline != null)
    {
      for (int i = 0; i < polyline.getVertexCount(); i++) {
        LatLng latLng = polyline.getVertex(i);
        Vertex v = new Vertex();
        v.setLat(latLng.getLatitude());
        v.setLng(latLng.getLongitude());
        vertices.add(v);
      }
    } else {
      throw new Exception("Please draw a road before saving road details");
    }
View Full Code Here

Examples of com.google.gwt.maps.client.geom.LatLng

        for (Iterator<StudyRegion> iterator = studyRegionList.iterator(); iterator
            .hasNext();) {
          StudyRegion studyRegion = (StudyRegion) iterator.next();
          if( studyRegion.getId().equals(currentStudyRegionId))
          {
            LatLng center = event.center;
            int mapZoomLevel = event.zoomLevel;
           
            // convert LatLng to Vertex
            Vertex mapCenter = new Vertex();
            mapCenter.setLat(center.getLatitude());
            mapCenter.setLng(center.getLongitude());
           
            studyRegion.setMapCenter(mapCenter);
            studyRegion.setMapZoomLevel(mapZoomLevel);
           
            GWT.log("DUPE Study region now has map view:" + studyRegion);
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.