Back to project page surveygcp.
The source code is released under:
GNU General Public License
If you think the Android project surveygcp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.droidplanner.gcp.gcp; //from w ww .j ava 2s.c o m import org.droidplanner.gcp.fragments.markers.GcpMarker; import org.droidplanner.gcp.fragments.markers.MarkerManager.MarkerSource; import android.content.Context; import com.google.android.gms.maps.model.LatLng; import com.google.android.gms.maps.model.Marker; import com.google.android.gms.maps.model.MarkerOptions; public class Gcp implements MarkerSource { public LatLng coord; public boolean isMarked; public Gcp(double lat, double lng) { this.coord = new LatLng(lat, lng); this.isMarked = false; } public void toogleState() { isMarked = !isMarked; } @Override public MarkerOptions build(Context context) { return GcpMarker.build(this); } @Override public void update(Marker markerFromGcp, Context context) { GcpMarker.update(markerFromGcp, this); } @Override public String toString() { return coord.toString() + " marked? "+ isMarked; } }