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

Trying to run the example, no points are displayed on the map. #10

Closed
rvlander opened this issue Sep 28, 2017 · 9 comments
Closed

Trying to run the example, no points are displayed on the map. #10

rvlander opened this issue Sep 28, 2017 · 9 comments
Assignees

Comments

@rvlander
Copy link

rvlander commented Sep 28, 2017

Configuration:

  • Python: 3.6.2
  • Chrome: Version 61.0.3163.100

The maps is displayed, is correctly centered and zoomed, but no points are displayed.

@ryanbaumann
Copy link
Contributor

@rvlander thanks for the bug report! Were you able to successfully load the local file into a dataframe in the prior cells in the example notebook?

@rvlander
Copy link
Author

@ryanbaumann, yes, I just had to generate color breaks manually since jenks seems broken.

I also tried with my data (before trying your example), and nothing was showing up too.

@rvlander
Copy link
Author

Just tested with Firefox, the problem remains.

@ryanbaumann ryanbaumann self-assigned this Sep 28, 2017
@ryanbaumann
Copy link
Contributor

ryanbaumann commented Sep 28, 2017

Interesting @rvlander. Please try upgrading to mapboxgl 0.0.3 via pip, which I just released on Pypi.

  1. Do you see any javascript error messages in your console? Please paste here if so.
  2. What is the output of the viz.create_html() command if you run it in cell 11?

Down the element there should be a bunch of geojson data after the map.addSource() command

@rvlander
Copy link
Author

rvlander commented Sep 29, 2017

There are no errors displayed in the javascript console.
Here is a part the generated html:
mapbox_glhtml

@ryanbaumann
Copy link
Contributor

@rvlander interesting. I was able to re-create on a fresh machine that couldn't install the C-binding version of jenks.

I updated the example in the master branch to use a slow but python-only version of jenks. Let me know if that works on the current master branch!

@rvlander
Copy link
Author

rvlander commented Oct 3, 2017

@ryanbaumann, plots are now displayed using the example notebook. I had to replace xrange calls by range: I am using Python 3.
However, what did it had to do with the colour stops?
What if I want to display plots with the same colour (using no property)?

@ryanbaumann
Copy link
Contributor

@rvlander

  • What values did you use for your color stops when you were unable to see the points plotted on the map?

  • Can you open up a new ticket to track the issue below:

What if I want to display plots with the same colour (using no property)?

@ryanbaumann
Copy link
Contributor

The latest examples notebook now uses the PySAL library to calculate data domain breaks. Check out the example in the latest master branch and here

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

2 participants