Skip to content

Add point spliting and auto focusing to the GeoPointEditor #373

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

Merged
merged 1 commit into from
May 25, 2016
Merged

Add point spliting and auto focusing to the GeoPointEditor #373

merged 1 commit into from
May 25, 2016

Conversation

samschooler
Copy link
Contributor

Added support for certain comma (,) related features to the GeoPointEditor.

Fill Via Paste

Allows you to paste a coordinate "23.45, 10.00" into the latitude field and it will auto populate.
Fill Via Paste Gif

Auto Advance

Allows you to paste an incomplete coordinate "23.45, " into the latitude field and it will auto advance to longitude. If you type in "23.45," it will also auto advance on the ,.
Auto Advance Gif

This is my first pull request, so if code quality is not up to par, or I did something wrong in this process please tell me.

@ghost
Copy link

ghost commented May 25, 2016

By analyzing the blame information on this pull request, we identified @drew-gross to be a potential reviewer.

@drew-gross
Copy link
Contributor

Cool! I think this is a really neat idea. We aren't super strict about code style, so I'm going to merge this, but also leave some comments, which you could address in a new PR if you feel like it.

@drew-gross drew-gross merged commit 8e52d3b into parse-community:master May 25, 2016
var values = value.split(",");

if (values.length == 2) {
values = values.map(function(val) {
Copy link
Contributor

Choose a reason for hiding this comment

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

We tend to prefer fat arrow functions: values = values.map(val => val.trim())

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

Successfully merging this pull request may close these issues.

2 participants