is there any default google map marker in android same as in iphone?
i am using a google map in my android application.And i want to represent the user's current location default google map marker similar to map marker in iphone.Currently i am using a .png image to represent the current locatio开发者_运维技巧n but need to replace that with a default map marker if it exists in android.
If somebody know then please help me with an example because i have gone through so many examples but none helps me implementing default map marker. i have gone through MyLOcationOverlay class also but it didn't help me out. Please help me ......
Much of the Google map markers can be downloaded legally from the stock online and used. Here are some links
- Here is one source: Google Earth Icons list
- Here is another : Google Maps Icons
You can use these code bases as examples.
- IncidentMap
- MapView Baloons
use enableMyLocation() in MyLocationOverlay class:
mMyLocationOverlay = new MyLocationOverlay(this,mapView);
mMyLocationOverlay.enableMyLocation();
mapView.getOverlays().add(mMyLocationOverlay);
精彩评论