
package com.uwetrottmann.shopr.ui;

import android.os.Bundle;

import com.google.android.gms.maps.SupportMapFragment;

public class ShopMapFragment extends SupportMapFragment {

    public static ShopMapFragment newInstance() {
        return new ShopMapFragment();
    }

    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);

        // enable my location feature
        getMap().setMyLocationEnabled(true);
    }
}

@@ -60,62 +60,382 @@
 le;%0A
-%0Aimport com.google.android.gms.maps.SupportMapFragment
+import android.widget.Toast;%0A%0Aimport com.google.android.gms.maps.GoogleMap.OnMapLongClickListener;%0Aimport com.google.android.gms.maps.GoogleMap.OnMarkerClickListener;%0Aimport com.google.android.gms.maps.SupportMapFragment;%0Aimport com.google.android.gms.maps.model.LatLng;%0Aimport com.google.android.gms.maps.model.Marker;%0Aimport com.google.android.gms.maps.model.MarkerOptions
 ;%0A%0Ap
@@ -801,16 +801,341 @@
 (true);%0A
+        getMap().setOnMapLongClickListener(new OnMapLongClickListener() %7B%0A%0A            @Override%0A            public void onMapLongClick(LatLng latLng) %7B%0A                // Add marker at tap position%0A                getMap().addMarker(new MarkerOptions().position(latLng).title(latLng.toString()));%0A            %7D%0A        %7D);%0A%0A
     %7D%0A%7D%0A

Add markers on long-pressing the map.