-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Major geographic feature planning issue #1070
Comments
Quick reading shows that the convention might be to use the lower left coordinate pair lat,lng to indicate a grid square. Any other thoughts on this? |
sounds good - can you edit the issue to reflect this? THanks!
…On Wed, Dec 7, 2016 at 10:05 AM, Liz Barry ***@***.***> wrote:
Quick reading shows that the convention might be to use the lower left
coordinate pair lat,lng to indicate a grid square. Any other thoughts on
this?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#1070 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ8K0HUel4sNjAKBsU6DL_NHzKGUaks5rFss8gaJpZM4LF8ds>
.
|
Hi @mridulnagpal -- if you're interested in a new challenge, these two (from above) could become a new issue:
|
@jywarren Roger that 👍 |
@jywarren How do I proceed? |
So, first if you could use the helper method in #1094 to display a map in the provided box, then change the template to a partial template. You can look up partial templates in the rails docs but it means you can include it in another template. Make sense? Thanks!!! |
@jywarren What would be the arguments for the helper method? |
Let's just start with a random example location of your choice, and an
empty array of items.
…On Dec 18, 2016 2:44 PM, "Mridul Nagpal" ***@***.***> wrote:
@jywarren <https://github.com/jywarren> What would be the arguments for
the helper method?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1070 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJyzHiJxMNOteoJozosYsNBslHrGmks5rJY05gaJpZM4LF8ds>
.
|
@jywarren It gives an error because of the empty array of objects undefined method `each' for nil:NilClass |
Ah, but could you pass an empty array like `[]`?
…On Dec 18, 2016 3:24 PM, "Mridul Nagpal" ***@***.***> wrote:
@jywarren <https://github.com/jywarren> It gives an error because of the
empty array of objects undefined method `each' for nil:NilClass
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1070 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ4ixQ_7xQTgRNsSbbcWpMnzZdK_Pks5rJZaAgaJpZM4LF8ds>
.
|
Cool, I tried it and it worked but cannot see a map on the page yet. |
Hmm, perhaps you could look at the js console in the browser?
…On Dec 19, 2016 3:36 AM, "Mridul Nagpal" ***@***.***> wrote:
Cool, I tried it and it worked but cannot see a map on the page yet.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1070 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ6Nkke8-kO2LUVBfuXb39iKE4IyAks5rJkIFgaJpZM4LF8ds>
.
|
It says Map container not found
On 20 December 2016 at 02:15, Jeffrey Warren <notifications@github.com>
wrote:
… Hmm, perhaps you could look at the js console in the browser?
On Dec 19, 2016 3:36 AM, "Mridul Nagpal" ***@***.***> wrote:
> Cool, I tried it and it worked but cannot see a map on the page yet.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#1070 (comment)
>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AABfJ6Nkke8-
kO2LUVBfuXb39iKE4IyAks5rJkIFgaJpZM4LF8ds>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1070 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AVULlGPG_v4v8Q9l5ICiOkRb4_cVEVPCks5rJuzlgaJpZM4LF8ds>
.
|
Ah -- does the helper template in /app/views/map/map_helper contain the div
w id "map" that the helper is inserting the map into?
…On Dec 19, 2016 4:17 PM, "Mridul Nagpal" ***@***.***> wrote:
It says Map container not found
On 20 December 2016 at 02:15, Jeffrey Warren ***@***.***>
wrote:
> Hmm, perhaps you could look at the js console in the browser?
>
> On Dec 19, 2016 3:36 AM, "Mridul Nagpal" ***@***.***>
wrote:
>
> > Cool, I tried it and it worked but cannot see a map on the page yet.
> >
> > —
> > You are receiving this because you were mentioned.
> > Reply to this email directly, view it on GitHub
> > <#1070#
issuecomment-267909303
> >,
> > or mute the thread
> > <https://github.com/notifications/unsubscribe-auth/AABfJ6Nkke8-
> kO2LUVBfuXb39iKE4IyAks5rJkIFgaJpZM4LF8ds>
>
> > .
> >
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#1070 (comment)
>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AVULlGPG_
v4v8Q9l5ICiOkRb4_cVEVPCks5rJuzlgaJpZM4LF8ds>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1070 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJxidOfSMHnRlZN6Avs23J3zftwYHks5rJvRqgaJpZM4LF8ds>
.
|
No its just the script tag in _leaflet no div tags |
Ah - it needs a Let's also create a new issue for this sub-issue, so we don't clutter the comments up for this umbrella-issue, since we'll be using it for a while :-) sound good? Thanks, and apologies for the slower pace of input while I'm traveling for the next few days! |
Yes -- thanks! If you'd like to tackle the next two here, they have to do with Leaflet JavaScript work. |
@jywarren Yeah sure |
Great work, @mridulnagpal -- maybe this new next step?
|
Hi, it looks all right, but the shaded grid square is not refreshing. I see a |
@jywarren delayFactor decides how much interval is there in rendering different cells, for example if delayFactor is high all the cells come after some interval one after the other, we can set it to 0 if we want alll the cells to render at the same time. |
Ah, interesting. Well, I think it's only shading on the initial draw, and
we need it to refresh the active cell as the map moves. Do you think that's
a next step you could attempt?
Thanks for your hard work!
…On Thu, Jan 26, 2017 at 11:43 PM, Mridul Nagpal ***@***.***> wrote:
@jywarren <https://github.com/jywarren> delayFactor decides how much
interval is there in rendering different cells, for example if delayFactor
is high all the cells come after some interval one after the other, we can
set it to 0 if we want alll the cells to render at the same time.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1070 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ295w8C-iMNeP9R5SX8sjwMzGuAhks5rWXX4gaJpZM4LF8ds>
.
|
@jywarren I have made another PR for it. It works fine now. |
@jywarren how do we start on the next one? |
So I think we'll need to start using the Google Geocoding API, so look into the links from the above list, especially the form here: https://github.com/publiclab/plots2/blob/master/app/views/users/_tags_form.html.erb#L101 You can try this search-location-by-text interface here: https://publiclab.org/profile/info/warren (but with your own username) |
@jywarren Okay so I studied the code for the API but how do I implement it for this one? |
Hi, Mridul - why don't you try copying in the key portions of the form from the other document, and we'll see how it runs? |
@jywarren What is our API_KEY for geocoding API? |
I think we can't share that out publicly, but you should be able to get your own. But now that I think about it, i'm not sure it's required anymore! Are you sure? |
How do I import the autocomplete method if I can't import the object google? Is there any other way to Import google? |
Hi, Mridul, perhaps we should open a new issue for this, as we're making a very long comments thread on this more general issue. But i looked and apologies, it looks like the Google Maps API and key are shown here: https://github.com/publiclab/plots2/blob/master/app/views/users/info.html.erb#L8 |
@jywarren What's next? |
HI, @mridulnagpal - I notice that the update doesn't happen until you deselect the search form box, do you think you could make it happen upon selecting a place? Next up will be a method to get the northwest corner of the current box, then working down the list above. I've been checking them off as we go! Thanks! |
OK, lots just moved over to: publiclab/leaflet-blurred-location#1 -- this will continue, though |
OK, i'm now closing this and will open a new one for those |
@jywarren Can you check off the points that have been completed |
Yep! |
We've had a wide variety of geographic features planned, built, attempted... this is the issue to organize them all! This is from a planning session with @ebarry and @steviepubliclab. Ask if you'd like to be involved!
Things listed here can/should be broken out into their own issues, and added to the Geography milestone: https://github.com/publiclab/plots2/milestone/7
Add location to profile
<%= render_map(@node.lat, @node.lon, @maps) %>
(in Fix/leaflet map display Closes #1130 #1131)gridSquareNWCorner()
method which returns upper-left bound of active grid squareregion:lat-lon
- https://github.com/publiclab/plots2/blob/master/app/controllers/user_tags_controller.rbProfile display
leaflet-virtual-grid
issue and shade the appropriateRemove location from profile
View people by region on a map
Other projects to plan for:
@location:lat,lon
-- "oh hai @region:42,-75 did you see this new permit that got filed for a sand frac mine?"The text was updated successfully, but these errors were encountered: