-
Notifications
You must be signed in to change notification settings - Fork 56
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
Conversation
@@ -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" |
There was a problem hiding this comment.
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.
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.
75d9ba1
to
de7e0ff
Compare
@jasonlally pushed de7e0ff to add the link, let me know what you think! |
👍 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. |
Add icons for drains to bay or ocean
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.