Android Open Source - surveygcp Gcp Map Fragment






From Project

Back to project page surveygcp.

License

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.

Java Source Code

package org.droidplanner.gcp.fragments;
//ww w .  j  a  v  a2  s.c o m
import org.droidplanner.gcp.fragments.helpers.OfflineMapFragment;
import org.droidplanner.gcp.fragments.markers.MarkerManager;
import org.droidplanner.gcp.fragments.markers.MarkerManager.MarkerSource;

import android.app.Activity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.GoogleMap.OnMarkerClickListener;
import com.google.android.gms.maps.model.Marker;

public class GcpMapFragment extends OfflineMapFragment implements
    OnMarkerClickListener {

  private OnGcpClickListner mListener;

  public MarkerManager markers;

  private GoogleMap mMap;

  public interface OnGcpClickListner {
    void onGcpClick(MarkerSource gcp);
  }

  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup viewGroup,
      Bundle bundle) {
    View view = super.onCreateView(inflater, viewGroup, bundle);
    mMap = getMap();
    mMap.setOnMarkerClickListener(this);
    markers = new MarkerManager(mMap);
    return view;
  }

  @Override
  public void onAttach(Activity activity) {
    super.onAttach(activity);
    mListener = (OnGcpClickListner) activity;
  }

  @Override
  public boolean onMarkerClick(Marker marker) {
    mListener.onGcpClick(markers.getSourceFromMarker(marker));
    return true;
  }

}




Java Source Code List

android.UnusedStub.java
org.droidplanner.gcp.GCPApp.java
org.droidplanner.gcp.activitys.GCPActivity.java
org.droidplanner.gcp.activitys.SettingsActivity.java
org.droidplanner.gcp.dialogs.openfile.OpenFileDialog.java
org.droidplanner.gcp.dialogs.openfile.OpenGcpFileDialog.java
org.droidplanner.gcp.file.DirectoryPath.java
org.droidplanner.gcp.file.FileList.java
org.droidplanner.gcp.file.IO.GcpReader.java
org.droidplanner.gcp.fragments.GcpMapFragment.java
org.droidplanner.gcp.fragments.helpers.OfflineMapFragment.java
org.droidplanner.gcp.fragments.markers.GcpMarker.java
org.droidplanner.gcp.fragments.markers.MarkerManager.java
org.droidplanner.gcp.gcp.Gcp.java
org.droidplanner.gcp.helpers.LocalMapTileProvider.java
org.droidplanner.gcp.helpers.TTS.java