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

Tilemap refactor #3445

Merged
merged 42 commits into from
Apr 9, 2015
Merged

Tilemap refactor #3445

merged 42 commits into from
Apr 9, 2015

Conversation

jthomassie
Copy link

Includes several 'low-hanging fruit' updates:

Juan Thomassie added 24 commits March 4, 2015 09:18
…ixels to meters for circle markers, removed resizeFeatures method
… width or height of geohash grid, cleaned up some extraneous code
@rashidkpc
Copy link
Contributor

Can you add a detailed description of each bug fix and enhancement and also link this back to the issues with "closes #blah"

var ne = L.latLng([gh[2][1], gh[2][0]]);
var sw = L.latLng([gh[0][1], gh[0][0]]);
var ew = Math.floor(nw.distanceTo(ne));
var ns = Math.floor(nw.distanceTo(sw));
Copy link
Contributor

Choose a reason for hiding this comment

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

two letter variables are hard to read, can you expand these to be descriptive of their purpose?

@w33ble
Copy link
Contributor

w33ble commented Mar 25, 2015

There's an error as soon as I create a tilemap vis, on tile_map.js, line 121 - looks like a missing DOM element?

screenshot 2015-03-25 16 30 17

@jthomassie
Copy link
Author

@w33ble misunderstood your previous example. This behaves the same as master now.

@jthomassie jthomassie assigned w33ble and unassigned jthomassie Apr 3, 2015
return L.circleMarker(latlng, {
radius: rad
});
var gh = feature.properties.rectangle;
Copy link
Contributor

Choose a reason for hiding this comment

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

gh is a pretty bad name, I have no idea what it's short for. Also, a note about what's going on here would be helpful, in particular, why [0,0], [0,1], [2,1], [2,0].

@w33ble
Copy link
Contributor

w33ble commented Apr 7, 2015

Aside from the code syntax comments, this seems functional and looks good to me. Passing to @panda01 just to get another set of eyes on it, since there's a lot here to review.

@w33ble w33ble assigned panda01 and unassigned w33ble Apr 7, 2015

// super min and max from all chart data
var min = mapData.properties.allmin;
var max = mapData.properties.allmax;
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, it doesn't appear to me like these variables are used.

@jthomassie
Copy link
Author

@w33ble @panda01 thanks for the review and feedback. I know there were too many commits in there. I have updated the PR to address your comments:

  • Added comments to some of the code
  • Renamed a two-letter var
  • Deleted unused params and vars from previous versions
  • Fixed a test that failed when an unused param was deleted

var self = this;

var length = mapData.properties.length;
var precision = mapData.properties.precision;
Copy link
Contributor

Choose a reason for hiding this comment

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

It appears to me that these variables aren't used in this function.

Copy link
Author

Choose a reason for hiding this comment

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

@panda01 thanks. Fixed this one.

@panda01 panda01 assigned jthomassie and unassigned panda01 Apr 9, 2015
jthomassie pushed a commit that referenced this pull request Apr 9, 2015
@jthomassie jthomassie merged commit d97fe1f into elastic:master Apr 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment