Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directions example weird behavior #51

Open
samanpwbb opened this issue Sep 2, 2014 · 6 comments
Open

Directions example weird behavior #51

samanpwbb opened this issue Sep 2, 2014 · 6 comments

Comments

@samanpwbb
Copy link
Contributor

Clearing start or beginning values from directions examples removes geometries from the map but doesn't clear the directions sidebar. This leaves user is a weird state where they can interact with the sidebar, see a marker on the map hover, but without a visible route.

This feels wrong. I would clear the sidebar when one of the values gets cleared.

@samanpwbb
Copy link
Contributor Author

In addition, the empty sidebar in default state is weird/confusing:
screen shot 2014-09-17 at 2 39 14 pm

@samanpwbb
Copy link
Contributor Author

@jfirebaugh do you know off hand what changed that would haves caused these issues? Looking at the history quick I don't spot any obvious culprit. I can look into this when I get a chance.

@jfirebaugh
Copy link
Contributor

The mapbox.js example doesn't contain all the code from the original mapbox-directions.js example. In particular the code that adds an .active class to the sidebar and the CSS to show/hide it.

@samanpwbb
Copy link
Contributor Author

I would do one of two things here to make this example better:

  1. Bring in more functionality, like was originally in place.
  2. Go the opposite direction and move instructions sidebar into separate container, strip out styling, optimize it a bit more for inheriting user-defined styles and behaviors.

It's got one foot in both options right now in an awkward way.

@DennisOSRM
Copy link

@samanpwbb what's less effort? The current situation does not represent our directions API well.

@samanpwbb
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants