BUG标记在触摸时会改变颜色
BUG the marker change the color when touch it
The marker when loading from fragment, loading a color, but when clicked, it changes color, and I have no color change when I click on the marker. Any suggestions to fix it? because it is only in the view that changes, internally if the state logic is fine; the marker should actually be green, but it turns orange.
bug in marker, must be green
change color when touch it
这样设置标记希望对你有帮助
//place marker where user just clicked
marker = googleMap.addMarker(new MarkerOptions()
.position(latLng)
.title("You are here!!!")
.draggable(true)
.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN)));
googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 15));
The marker when loading from fragment, loading a color, but when clicked, it changes color, and I have no color change when I click on the marker. Any suggestions to fix it? because it is only in the view that changes, internally if the state logic is fine; the marker should actually be green, but it turns orange.
bug in marker, must be green
change color when touch it
这样设置标记希望对你有帮助
//place marker where user just clicked
marker = googleMap.addMarker(new MarkerOptions()
.position(latLng)
.title("You are here!!!")
.draggable(true)
.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN)));
googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 15));