Is there a way to keep displaying alternative routes on map, drawn using drawRoutes() method, on clicking any of alternative route in mapbox android? - mapbox

I have displayed a list of direction routes on map, using "draw Routes()" method of Navigation "Mapbox Map" class. I have added start navigation method after it and providing it with first route in list. The navigation route is displayed in blue color and rest all other routes are in gray color, acting as alternative route.
My Query is, as soon as I click on gray color alternative route or nearby position from alternative routes on map, the alternative routes get disappeared. I want to keep displaying the alternative route or else want to disable the click listener on alternative route, so that they don't disappear. Is there a way to achieve this functionality?
Please help me out with the same.
Note: added spaces in words mentioned in quotes to avoid typing errors.

I see you are new here and i would like to help you!
Could you please share the code in which you implement the example you describe? It is very helpful for other developers if they can reproduce the behaviour.
This would help a lot, and saves time when trying to answer your question! As a nice side effect, you would not receive negative votes!

Related

Create a menu on avatar click

I've been searching for quite a while now, and I don't know if I'm not searching the correct term, but I want to make a menu that displays over the current screen when you click on your avatar.
Like this one from Google:
Or this one from Facebook:
I tried using showMenu(), but this one requires that I use PopUpMenuItem() which is, but it does not allow customizing the whole menu. For what I understand, I have to draw a Material() widget or Stack() over the current screen, but I have no knowledge on that.
What you need is an OverlayEntry. They're tricky, and there are packages that help you manage overlays more easily. Please check these:
https://pub.dev/packages/modals
https://pub.dev/packages/flutter_portal

Modifying the Paper Onboarding framework

I wanted to implement a onboarding sequence for my app, and I ended up using Paper Onboardinghttps://github.com/Ramotion/paper-onboarding.
Im still kinda new to programming and I am trying to do something as simple as removing the bottom slider icons on the last screen as i instead want my own buttons to appear to ask for Location Services permission:
You can see the page indicator I want to remove under my buttons
The framework has little documentation and the developers are not answering any questions on their github page so I am wondering how to go about this. Preferably in a general way so I can apply this to other frameworks.
I found that i could use the following function to manipulate image, header and text, but not what seems to be called the pageView
func onboardingConfigurationItem(_ item: OnboardingContentViewItem, index: Int) {
//item.imageView?.alpha = 0
}
The autocomplete just lets me access these three:
Can anyone point me in the right direction on how to remove the pageIndicator?
What are my options here? Do I have to change the framework? Is this standard procedure to do?
I ended up just setting the color of the page indicators equal to the background color.

Page Control Navigation Symbol?

Could someone point me in the right direction on how you get your Page Controller to show the navigation symbol like this?
I couldn't really describe it well, and couldn't find much relevant information on the internet. Anything would be great, thanks!
This is most likely a custom UIPageController.
Or you might be able to add a UIImageView to the left of the page control and when you try to swipe, set that image view to highlighted and you'll get the same effect.
Here's a custom page control, DDPageControl
https://github.com/ddeville/DDPageControl

GWT widget: top page popdown message bar - similar to the one here on stackoverflow

Has anyone seen or have an idea on how to go about creating widget that would function like the pop-down message bar here at stackoverflow?
I implemented one with absolute positioning. My entire page is generated by GWT, so it was (relatively) easy to use RootLayoutPanel.get().add(popupWidget), and then use RootLayoutPanel.get().setWidgetTopHeight(), etc, to animate the thing on and off the screen.

Left-aligned tabs in GWT

I have a project in which I need a way to display essentially a list of tabs, each with their own content pages, down the left side of the page. I'm using TabLayoutPanels elsewhere to good effect, but after looking at how they are constructed it seems like it would be quite a bit of work to undo Google's carefully constructed layout and get it to work in any other orientation than top-aligned.
This doesn't seem like it would be an uncommon layout, so does anyone know of a successful implementation of this kind of container?
Best you can do is use DeckPanel, and make your custom tab controls to switch visible widget in that DeckPanel.