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

Leaflet-blurred-location integration template initialized with object #1590

Merged

Conversation

mridulnagpal
Copy link
Member

@mridulnagpal mridulnagpal commented Aug 26, 2017

Make sure these boxes are checked before your pull request is ready to be reviewed and merged. Thanks!

  • [ ] all tests pass -- rake test:all
  • [ ] code is in uniquely-named feature branch, and has been rebased on top of latest master (especially if you've been asked to make additional changes)
  • [ ] pull request is descriptively named with #number reference back to original issue

Please be sure you've reviewed our contribution guidelines at https://publiclab.org/wiki/contributing-to-public-lab-software

We have a loose schedule of reviewing and pulling in changes every Tuesday and Friday, and publishing changes on Fridays. Please alert developers on plots-dev@googlegroups.com when your request is ready or if you need assistance.

Thanks!

#1416

@mridulnagpal
Copy link
Member Author

Added the library to application.js and bower, also added the template to /locations/form. Here's a screenshot

image

@PublicLabBot
Copy link

PublicLabBot commented Aug 26, 2017

2 Messages
📖 @mridulnagpal Thank you for your pull request! I’m here to help with some tips and recommendations. Please take a look at the list provided and help us review and accept your contribution!
📖 This pull request doesn’t link to a issue number. Please refer to the issue it fixes (if any) in the body of your PR, in the format: Fixes #123.

Generated by 🚫 Danger

Copy link
Member

@jywarren jywarren left a comment

Choose a reason for hiding this comment

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

Cool! What if we include the js on the template and don't build it into the application is?


var blurredLocation = new BlurredLocation(options);

blurredLocation.panMapToGeocodedLocation("placenameInput");
Copy link
Member

Choose a reason for hiding this comment

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

Then here we'd want to create a button and click listener so you can save the location and it runs addTag() -- which I believe takes just the tagname as a parameter. But you can look at @shelbyfire's recent pull requests to confirm that usage.

Copy link
Member

Choose a reason for hiding this comment

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

Er, @shelbyfirebaugh I meant!

Copy link
Member Author

Choose a reason for hiding this comment

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

👍

@mridulnagpal
Copy link
Member Author

@jywarren Made the changes, please have a look.

@@ -47,6 +48,8 @@

<br />
<input editable="false" id="placenameDisplay" type="text" class="form-control" />
<br />
<button class="btn btn-primary" onclick="addTag('location: blurred')">Save Location</button>
Copy link
Member

Choose a reason for hiding this comment

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

oops, no space here, should be just location:blurred and then we should also use 'lat:' + location.getLat() and 'lon:' + location.getLat() -- make sense? That way the button adds all three tags.

@jywarren
Copy link
Member

jywarren commented Sep 5, 2017

Ooh, is this ready to go? Thanks!

@jywarren
Copy link
Member

Cool, this seems ready for testing out. Merging!

@jywarren jywarren merged commit e09dc3d into publiclab:master Sep 19, 2017
@jywarren
Copy link
Member

It'll be testable at https://publiclab.org/locations/form -- probably later today!

@jywarren
Copy link
Member

@publiclab/infrastructure @icarito - would you mind merging this to stable and getting it in the queue (along with other recent merges) for production today? Thanks!

@jywarren
Copy link
Member

OK - @publiclab/infrastructure @icarito i've merged to stable, having happened to get to it first. Chat me in Riot if you need!

@icarito
Copy link
Member

icarito commented Sep 19, 2017 via email

@jywarren
Copy link
Member

Roger that! :-)

@icarito
Copy link
Member

icarito commented Sep 19, 2017

Hi, just a note that this has just been deployed to production!
Thanks for your contribution to Public Lab!

--
Sebastian
Infrastructure Team

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.

None yet

4 participants