Coder Social home page Coder Social logo

Comments (9)

ryanbaumann avatar ryanbaumann commented on July 25, 2024

@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?

from mapboxgl-jupyter.

rvlander avatar rvlander commented on July 25, 2024

@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.

from mapboxgl-jupyter.

rvlander avatar rvlander commented on July 25, 2024

Just tested with Firefox, the problem remains.

from mapboxgl-jupyter.

ryanbaumann avatar ryanbaumann commented on July 25, 2024

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

from mapboxgl-jupyter.

rvlander avatar rvlander commented on July 25, 2024

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

from mapboxgl-jupyter.

ryanbaumann avatar ryanbaumann commented on July 25, 2024

@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!

from mapboxgl-jupyter.

rvlander avatar rvlander commented on July 25, 2024

@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)?

from mapboxgl-jupyter.

ryanbaumann avatar ryanbaumann commented on July 25, 2024

@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)?

from mapboxgl-jupyter.

ryanbaumann avatar ryanbaumann commented on July 25, 2024

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

from mapboxgl-jupyter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.