Is there a way to have the MapView not show my current location? I'm not *doing anything, as far as I can tell to provoke this behavior, and yet its displaying this flashing blue dot over my current location.
The app I'm writing doesn't want/need for the user to see their location, and the dot is just distracting, but I'm unable to see how I can turn it off.
Also, the cursor button on the lower right hand side seems to be a permanent feature.
Would love to get some guidance on disabling both of these.
so... it looks like MyLocationOverlay is the key here. If you never apply it, or call enableMyLocation() on it it won't display your location (I guess that should have been obvious)... Still haven't figured out how to get rid of the button in the lower right.
Related
How do I disable a new pin being dropped when a user touches the map? This seems like this should be obvious, but I can't find it anywhere! Basically map comes up with my custom pins, user touches anywhere on the screen, a dummy pin appears and mine disappear.
You might want to change the draggable(boolean) function in markerOptions, you can set the draggable to be false.
For more information about a draggable market, you can visit this documentation.
I'm dumb. I got a little copy and paste happy and had that as part of a listener.
I want to change the marker Icon at run time to indicate the status of each resource. I can change the icon but after change when I click on the marker, infowindow is not displaying. But I observe when I try continues clicks, info window is displays some times but quickly disappear.
If I don't change the icon everything work fine.
Any idea?
This seems to be a bug related to the one I reported on gmaps-api-issues. Current setIcon implementation has issues that make it unusable for most cases.
I can only suggest starring that issue and maybe adding a comment and a snippet of code you have problems with.
Recently I show the ubicabs taxi booking app. I found very nice functionality inside it. In this app they have google maps for showing markers, but they have used very good UI component for that. Also I found one more uniqueness is that whenever user moves or change the position of marker through touch it will fetch the current location. One thing that I know is that it is using the onTouchEvent of Overlay but how to create that marker balloon and how to get updated location on the basis of that marker.
I am attaching a preview of that marker here. Also would like to know that how can we scroll the text inside that balloon?
The best overlay open project I have found so far is this one, link. But it is nothing compared to the picture above. Would also like to know how they created this! Great Question and picture ;)
move the pin to front when we click on pin in map please suggest any solution to do this
Best answer: Write your own Overlay to have this capability.
Possible answer: Play around with the order of the OverlayItems in your ItemizedOverlay. That may control which is "on top", but I am not completely certain. And, since that behavior is not documented, it might change in the future.
In the android developer's webpage there's an example on how to show an alert dialog when the user taps on an item in the map.
What I want to do is show the default bubble the maps App shows when you tap on a POI.
Is there a way to do this? Am I missing something here?
Here is a nice solution for a balloon-like popup for Google Map markers:
https://github.com/jgilfelt/android-mapviewballoons
Nope. You'll have to roll your own views with background ninepatches (or just use a decent looking default system one, like the Toast background drawable), and add a TextView (or whatever View you want) with that background to an overlay. It's a little silly that there's nothing built in for that since the "bubble with a bit of text" is a very common developer need, but it's actually really not that much work.