-
Notifications
You must be signed in to change notification settings - Fork 1.3k
MarkerViewOptions.icon() Should Be Optional #5276
Comments
BTW the default marker image has a bunch of bottom padding right now and can either be cropped out or |
@cammace great catch on Icon. Couple of remarks on the subject. Yes we should provide a default icon when none is provided but note that we can't reuse the default one: The default for gl markers contained extra space at the bottom because at that time we didn't have any setup for anchoring. We will need to crop that image and use that as the default for ViewMarkers. FWIW the default anchoring (conform to Google is at the bottom-middle = .anchor(0.5f,1.0f). |
I really liked the explanations in #5079 by the way. When you are going to release 4.1.0 you should make users aware of this in the tutorials, especially because the anchoring differs for both types. I was pretty surprised at first some days ago ;) |
Just noting that @Schumi09 has documented a good workaround for the current state of the SDK as well as inspiration for fixing this when we pick this issue back up in #3276 (comment). Thanks again @Schumi09! |
This landed in #5348 and was merged in |
Position should be the only thing that needs to be passed to
MarkerViewOptions()
. Currently.icon
is also required instead of just using the default red marker iconMarkerOptions()
uses. In other words, setting up a simple marker view currently looks like this:cc: @bleege @tobrun @zugaldia @ivovandongen
The text was updated successfully, but these errors were encountered: