title: Using geo location Google maps api v2
body: <p>I have added a map fragment to my app including a geographic marker and included my play services jar but I'm getting the following error on my marker code:</p>
  
  <pre><code>Error: Cannot cast from Fragment to SupportMapFragment 
  </code></pre>
  
  <p>The snippet is as follows:</p>
  
  <pre><code>GoogleMap mMap = ((SupportMapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();
          mMap.addMarker(new MarkerOptions()
                  .position(new LatLng(53.271900177, -9.04889965057))
                  .title("GMI alway Location"));;
  </code></pre>
  
  <p>This is my xml declaration to reference it:</p>
  
  <pre><code>&lt;fragment
          android:id="@+id/map"
          android:name="com.google.android.gms.maps.SupportMapFragment"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_alignParentBottom="true"
          android:layout_alignParentRight="true" /&gt;
  </code></pre>
  
  <p>Anyone have any ideas as to where I'm going wrong? Thanks Brian J</p>