Questions tagged [mapfragment]

The Android Fragment that represents a Map component in an Android app.

240 questions
2
votes
2 answers

Unable to Resolve: FragmentManager.FindFragmentById

The following line does not compile: var mapFragment = FragmentManager.FindFragmentById(Resource.Id.map); Error CS0120 An object reference is required for the non-static field, method, or property…
Scott Nimrod
  • 11,206
  • 11
  • 54
  • 118
2
votes
0 answers

How to add/display new fragment on top of MapFragment

I have added a map fragment in xml with some additional views in LinearLayout underneath it
pazera
  • 21
  • 1
2
votes
2 answers

Activity with MapFragment snapshot

I have an Activity which contains a MapFragment V2 on half of the screen, and on the other half there are some more views such as TextViews with details. This how the screen looks like: Now, I want to take a snapshot of the whole activity include…
Moti Bartov
  • 3,454
  • 33
  • 42
2
votes
0 answers

Android Development: Service not registered: com.google.android.gms.common.internal.bf

I'm using the "com.google.android.gms.maps.MapFragment" to display a map in a embedded fragment. When I try to close the activity (or wait a few seconds), the application crashes with the following error: E/AndroidRuntime﹕ FATAL EXCEPTION: main …
2
votes
1 answer

MapFragment Crashes after app is killed on background

Implement googlemap on my project like this from xml from…
Belvi Nosakhare
  • 3,107
  • 5
  • 32
  • 65
2
votes
1 answer

MapFragment hides everything in fragment

Hi i am using navigation drawer in my project and multiple fragments. in 1 of my fragment i have mapfragment which is added dynamically. Now when that fragment loads it hides every other views in parent fragment. and when i click on other fragment…
Paresh Dudhat
  • 1,166
  • 1
  • 14
  • 28
2
votes
1 answer

GoogleMap (Android) projection visible region not updated after orientation change?

When my SupportMapFragment onCreateView() method is called, I read the map's getProjection().getVisibleRegion().latLngBounds.northeast.x and getProjection().getVisibleRegion().latLngBounds.southwest.y The first time I launch the app (in portrait…
2
votes
1 answer

Fatal signal 11 in background thread only on 4.4.2

I have an activity that displays a screenshot of a map fragment, along with some other things. Everything shows up perfectly until a second or two later when the app crashes. This is only happening on Android phones using 4.4.2 kitkat, but not on…
CodyMace
  • 646
  • 1
  • 8
  • 19
2
votes
0 answers

android MapFragment doesn't show on replace

I have two FrameLayout in an activity, I just replace fragments inside those FrameLayout. It works great with everyfragment BUT the one containing the MapFragment for the GoogleMap. When I first launch the app it works and I see the map (everything…
rXp
  • 617
  • 2
  • 12
  • 25
2
votes
1 answer

Location of the center of the map-fragment - Android Google Maps

I need to get the location of the center of my map-fragment. Of course it is not the center of the screen. I want to do something every time this location changes. Every time the user moves/scrolls the map, I need the location of the center of my…
stanete
  • 4,062
  • 9
  • 21
  • 30
2
votes
3 answers

NavigationDrawer behind MapFragment

[SOLVED] I added this to MainActivity XML file:
2
votes
3 answers

Android DrawerLayout with MapFragment black screen when returning to map

I've been experimenting with android.support.v4.widget.DrawerLayout and have 4 fragments to choose from the drawer. The map initially loads with no problems however when I open the drawer and change fragments I am unable to then go back to the map.…
kev
  • 2,306
  • 3
  • 26
  • 31
2
votes
2 answers

Intercept touch event SlidingPaneLayout

I have an Activity with a SlidingPaneLayout, and inside there are two fragments: a ListView on the left, and a MapFragment on the right. How is it possible to intercept the touch event generated so that the user can move the map without close the…
2
votes
0 answers

Correct and Complete way to add Map in a Fragment which is a part of navigation drawer

I implemented NavigationDrawer from the latest Android upgrade. Because of that I moved my entire application from different Activities to different Fragment. My activities used Maps and I implemented them by using SupportMapFragment but now I have…
2
votes
0 answers

How can I additemizedoverlay in mapfragment?

How can I additemizedoverlay in mapfragment? This code is from androidhive google places and I am having trouble with mapview. It only displays gridlines maybe caused by deprecated googlemapv1. How can I change this from mapview to mapfragment?…
Etionloc
  • 21
  • 2