-
Notifications
You must be signed in to change notification settings - Fork 206
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
New view only map page #777
Conversation
@@ -40,6 +40,14 @@ def save_location | |||
render nothing: true | |||
end | |||
|
|||
def view_map | |||
# @map = Map.find_by(slug: params[:id]) | |||
@map= Map.last |
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.
Surrounding space missing for operator =
.
Code Climate has analyzed commit 7b0fbc18 and detected 1 issue on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
Codecov Report
@@ Coverage Diff @@
## main #777 +/- ##
==========================================
+ Coverage 73.26% 73.48% +0.22%
==========================================
Files 40 40
Lines 1384 1388 +4
==========================================
+ Hits 1014 1020 +6
+ Misses 370 368 -2
|
Exciting!!! |
I was thinking, when we finish this, maybe we should apply it to the tag page too, /tag/featured for example! With a map of the maps with that tag. |
@jywarren noted..Will work to get this done today |
bce8925
to
d024451
Compare
Hey @jywarren , what do u think? Also where do we want the |
e4c8405
to
f0a7648
Compare
Looking great! I think:
|
What if we had a section like "Share + Embed" or something? |
Great thanks Jeff |
I think displaying nearby maps and highlighting the mappers is seems more convenient...I will change to that. |
926abc2
to
eddb8de
Compare
@@ -38,6 +38,14 @@ def save_location | |||
render nothing: true | |||
end | |||
|
|||
def view_map |
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.
Oh, maybe this belongs in the maps_controller
, next to the show
method? Thanks, Cess!
Hey @jywarren could you please point me to the partial/script that renders the images on top of the map? Thanks |
Ah, it should be the one we use in the `/embed/_mapname_` route. And i
believe we mark the images as "editable:false" or something like that in
JavaScript!
Aha - no, it's the same template but we set `readOnly` here:
https://github.com/publiclab/mapknitter/blob/1c7c1371fc064e64905dc4c96ebf554455a4e499/app/views/layouts/knitter2.html.erb#L197
…On Wed, Jul 10, 2019 at 10:28 AM Cess ***@***.***> wrote:
Hey @jywarren <https://github.com/jywarren> could you please point me to
the partial/script that renders the images on top of the map? Thanks
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#777?email_source=notifications&email_token=AAAF6J5ZILQPVXLHEK4KJBDP6XWXVA5CNFSM4H4WTQUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZTUORA#issuecomment-510084932>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAF6JYR2UTVV5JUPB7QHR3P6XWXVANCNFSM4H4WTQUA>
.
|
Great thanks |
Hey @jywarren, I removed the 'Env data near here' section until LEL is ready. I also moved the logic to maps_controller. I added an Also thinking for a follow-up issue maybe we can change the map design in |
277ef37
to
7bc1224
Compare
7bc1224
to
5b9b610
Compare
3bcbfe1
to
2531ffe
Compare
Hey @jywarren , maybe we could merge this now that rails 5 is working fine? Thanks |
Hi Cess! Yes, sounds good. Merging now, can you check it out on stable once we do? |
Hey Jeff, it is working fine on stable apart from the routing error that Sasha has fixed in her latest PR. Thanks |
* view map page * view map routing and styling * improve map view * style mappers * add edit map button * test view map action * Enhance view page * show nearby maps * change div to class * update tests * move view_map to maps controller * show images on top of map * fix filename typo * fix typo * Fix mobile view * include tags in posting to publiclab * fix styling * change to new view page and create an edit page * add show page button in edit * fix failing tests * make buttons style consistent * change button to exit editor * remove observation section
Fixes #761
rake test
@publiclab/mapknitter-reviewers
for help, in a comment below