Example usage for com.google.gwt.maps.client.overlay Marker setLatLng

List of usage examples for com.google.gwt.maps.client.overlay Marker setLatLng

Introduction

In this page you can find the example usage for com.google.gwt.maps.client.overlay Marker setLatLng.

Prototype

public void setLatLng(LatLng point) 

Source Link

Document

Sets the geographical coordinates of the point at which this marker is anchored.

Usage

From source file:org.sigmah.client.page.entry.SiteMap.java

License:Open Source License

public void updateSiteCoords(int siteId, double lat, double lng) {
    Marker marker = sites.get(siteId);
    if (marker != null) {
        // update existing site
        marker.setLatLng(LatLng.newInstance(lat, lng));
    } else {//from w ww.j a va 2  s. co m
        // create new marker
        marker = new Marker(LatLng.newInstance(lat, lng));
        markerIds.put(marker, siteId);
        sites.put(siteId, marker);
        markerMgr.addOverlay(marker, 0);
    }
}

From source file:org.sigmah.client.ui.widget.map.GoogleWorldMap.java

License:Open Source License

@Override
protected void movePin(Marker marker, double latitude, double longitude) {
    marker.setLatLng(LatLng.newInstance(latitude, longitude));
}