I'm using styled Google maps, night style from mapstyle. On a certain tilt and zoom a white thing appears on top. On different zooms ant tilts everything is fine. Any ideas how this can be fixed?
Related
I used to be able to short tap the screen and it would remove the search and explore bars, but now it drops a pin instead, even if the place I have tapped is in the middle of countryside with no places marked nearby.
I want tapping to remove the search and explore bar margins from top & bottom of screen, so that I can see more area (and more of the route displayed) without zooming out.
How do I get the map to go full screen? This problem only started recently.
Moto G6 Play; android version 9; google maps version 11.59.0705
Thanks for any help!
I just noticed that the arrow below my infowindow slightly off-centered is. It is like 5dp moved to the left. I am using the code from the google example and didn't change anything. Anyone else experiencing this?
I have a problem with drawing on my custom overlay when I zoom Google map to specific level.
I made my itemized overlay provided default marker, and aver wrote a draw method with path connecting overlay items. Next I added overlay items with Geo coordinates. WhenI run my application it works perfect showing all items with default marker and a line connecting those items. Then I zoom in/out and everything still fine but when I zoom very close my line disappears but markers still visible. If I zoom out line appears back to normal.
Dis problem exist only on actual devices, never on simulator.
Any ideas what it could be?
Thanks
The same happened to me on my Nexus 7. I solved the issue by changing android:targetSdkVersion="14" to android:targetSdkVersion="8" in AndroidManifest.
Update: You can use google maps api v2 (MapFragments)
Are you sure that both points (start and end point) of the line being drawn are visible in the screen after you zoom?
I've realized that on my device that when zooming, if the starting and ending coordinates for a rectangle are out of the screen, the rectangle will not be drwan, even if the center should be visible.
Regards.
In the following screenshot you can see a white area (highlighted by red) appearing by default in every mapview. I know that the mapView in android has this default behavior but when the native Google Maps app is launched in the device, it doesnt show the white area. I would like to see that behavior. But i am out of options. Should there be any scroll listener on the map which will stop the panning over white areas. Any help is appreciable.
Thanks,
In the following screenshot you can see a white area (highlighted by red) appearing by default in every mapview.
It does not appear "by default in every mapview". This sample application, for example, does not have these areas, at least at reasonable zoom levels.
It is likely that your problem is purely at a zoom level of 1, due to the aspect ratio of the Mercator projection. It has been years since I bothered with a zoom level of 1.
but when the native Google Maps app is launched in the device, it doesnt show the white area
That is because the Google Maps application does not start out at a zoom level of 1. If, however, you pinch-to-zoom to get to its lowest zoom level, then pan around, you will see those white spaces above and below the map. Again, this is most likely due to the aspect ratio of the Mercator projection.
Should there be any scroll listener on the map which will stop the panning over white areas.
I doubt it.
I have a map based Android program, that is working nicely, I have it opening an alert dialog when an overlay is clicked...
I start the app, and see my overlays, and all is fine, until I select an overlay. When I select an overlay, my alert dialog appears as expected, but when I close it, suddenly all the annotations suddenly shift down and right a little bit, and then stay shifted from that point on.
It almost seems like the bounds of the overlay suddenly got resent from being set on the middle of the image I am using for the overlay, the top right corner of the image. Is this a KNOWN android issue? I don't have anything in my code explicitely playing with the bounds of the image after I initially set it to the be configured to the center yet this seems to be happening... any ideas?
I figured it out, I was passing the drawable that was my overlay to the AlertDialog to be used as its ICON... apparently the AlertDialog code reset the bounds on my Drawable from being Center Bottom as I had it set up, to top left, and so when I dismissed the dialog and the map redrew all the overlays shifted so that there location was upper right of the Overlay Image and not the center of it from that point forward.
It would have been nice if the API documentation mentioned this.