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

Add icons for drains to bay or ocean #119

Merged
merged 4 commits into from
Jan 17, 2016
Merged

Add icons for drains to bay or ocean #119

merged 4 commits into from
Jan 17, 2016

Conversation

jasonlally
Copy link
Contributor

This adds the bay/ocean icons to the map and legend.

@jszwedko - as we discussed I want to address #66 by adding a link that only comes through on the infowindows for bay icons. I need your much better rails skills on this particular part.

The link can say: This drain is special! Learn why.

And go to: http://sfwater.org/index.aspx?page=399

I think it makes the most sense to have a method to check for parameters on the things so we could pass in any attribute and parameter and it would return true or false. Then we can have a general method for providing different behaviors based on attributes of a particular drain.

Then on the view check for MS4 on system_use_code and display the link only for those.

Hopefully that makes sense.

@@ -49,7 +49,7 @@
t.string "name"
t.decimal "lat", precision: 16, scale: 14, null: false
t.decimal "lng", precision: 17, scale: 14, null: false
t.string "city_id"
t.integer "city_id"
Copy link
Member

Choose a reason for hiding this comment

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

Not sure how this snuck in there -- you may need to run a ./bin/rake db:migrate locally as having it as a string is correct.

jasonlally and others added 4 commits January 16, 2016 22:16
Bring it up to date -- missed db:migrate
Currently just hardcoding the one special case that we have, but we
should generalize if we add more.
@jszwedko
Copy link
Member

@jasonlally pushed de7e0ff to add the link, let me know what you think!

Looks like:
2016-01-16-221829_348x303_scrot

@jasonlally
Copy link
Contributor Author

👍 I'll merge. We may add to the successfully adopted info window, but I'll ask @jeanwalshie and that's something I can do now with this in place.

jasonlally added a commit that referenced this pull request Jan 17, 2016
Add icons for drains to bay or ocean
@jasonlally jasonlally merged commit d481b4c into production Jan 17, 2016
@jszwedko jszwedko deleted the add-bay-icons branch January 17, 2016 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants