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

Scattermapbox BADNUM (w/o upgrading mapbox-gl) #1564

Merged
merged 6 commits into from
Apr 7, 2017

Conversation

etpinard
Copy link
Contributor

@etpinard etpinard commented Apr 7, 2017

replacement for #1543 to be merged in #1538.

After four days of trying to get newer versions of mapbox-gl to work in nw.js, I decided it wasn't worth the trouble. So, in brief, this PR:

  • makes scattermapbox/calc.js reuse scattergeo/calc.js
  • 🔪 the last remaining signs of calcdata placeholder
  • will make the test ✅ in Scattergeo BADNUM #1538
  • (had to) keep the current hacky convert logic in scattermapbox/convert.js 😞

etpinard added 6 commits April 7, 2017 11:50
- e.g. in rreusser's plotly-mock-viewer
- so that it handles BADNUM items
- does colorscale / size fn item conversions
- these were handled in scattermapbox/calc.js previously
- mapbox does this annoying thing were their
  tiles change on their server independently
  of the mapbox-gl version used.
@etpinard etpinard added status: reviewable bug something broken labels Apr 7, 2017
@etpinard etpinard added this to the v1.26.0 milestone Apr 7, 2017
self.div.removeChild(controlContainer);

// make sure canvas does not inherit left and top css
map._canvas.canvas.style.left = '0px';
map._canvas.canvas.style.top = '0px';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rreusser looking good:

image

if(!Array.isArray(cd) || !cd[0]) {
cd = [{x: false, y: false, placeholder: true}];
cd = [{x: BADNUM, y: BADNUM}];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@alexcjohnson
Copy link
Collaborator

can't wait to get rid of nw... 💃

@etpinard etpinard merged commit 248b760 into scattergeo-badnum Apr 7, 2017
@etpinard etpinard deleted the scattermapbox-badnum2 branch April 7, 2017 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants