Package com.buzzcoders.yasw.widgets.map.core

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


    return getMarkers().size();
  }

  @Override
  public void updateMarkerPosition(int markerIdx, LatLng newPosition) {
    Marker marker = getMarkers().get(markerIdx);
    marker.setPosition(newPosition);
  }
View Full Code Here


  private void locateAddress(String addressText) {
    LatLng coords = GMapUtils.getAddressCoordinates(addressText);
    if(coords!=null) {
      mapTile.getJavascriptMapSupport().evaluateJavascript("myMap.panTo(new google.maps.LatLng("+coords.getLat()+","+coords.getLng()+"));");
      mapTile.getJavascriptMapSupport().clearMarkers();
      mapTile.getJavascriptMapSupport().addNewMarker(new Marker(coords));
      mapTile.getJavascriptMapSupport().evaluateJavascript("myMap.mapMarkers[0].setDraggable(false);");
    }
    else {
      MessageDialog.openError(UIUtils.getShell(),
          Messages.BasicInfoMapDialog_LocationErrorTitle, Messages.BasicInfoMapDialog_LocationErrorMsg);
View Full Code Here

        super (browser, name, mapSupport);
    }
   
    @Override
    public Object function (Object[] arguments) {
      Marker newMarker = new Marker(GMapUtils.getMarkerOptions(arguments));
        getMapSupport().addNewMarker(newMarker);
        return null;
    }
View Full Code Here

TOP

Related Classes of com.buzzcoders.yasw.widgets.map.core.Marker

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.