Skip to content

Conversation

etpinard
Copy link
Contributor

Previously,

// create an empty layer
relayout(gd, {'mapbox.layers[0]': {}});

// add geojson to that layer
relayout(gd, {'mapbox.layers[0].source': geojson});

resulted in errors. This PR fixes it.

etpinard added 2 commits June 27, 2016 13:51
- so that a layer object created with an invalid source
  can be relayouted with a valid one.
@etpinard etpinard added bug something broken status: reviewable labels Jun 27, 2016
@mdtusz
Copy link
Contributor

mdtusz commented Jun 28, 2016

Looks good to me 💃

@etpinard etpinard merged commit d052f82 into master Jun 28, 2016
@etpinard etpinard deleted the mapbox-layer-relayout branch June 28, 2016 14: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.

2 participants