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

Map to display all User Group in India #15

Open
kracekumar opened this issue Oct 12, 2014 · 14 comments
Open

Map to display all User Group in India #15

kracekumar opened this issue Oct 12, 2014 · 14 comments

Comments

@kracekumar
Copy link
Member

Have a map on the site that shows the current local user groups across the country and the one closest to the user. If there is none, the user can start and list one.

@iambibhas
Copy link

Like I mentioned in a mail on the PSSI list, let's have this feature on the python.org.in app. Let pssi.org.in totally be about PSSI. We can show the map on this site but then link to python.org.in for any further development.

@kishorbhat
Copy link

I'd like to take this up. However, I have a few questions:

  1. Should the map be static or dynamic? If the only thing we're doing with the map on this site is displaying existing groups, then a static solution is simpler to implement.
  2. @iambibhas what exactly do you mean by further development?
  3. @kracekumar @iambibhas is it safe to assume that we will be using the Google Maps API for this functionality?

@kracekumar
Copy link
Member Author

I think this is isn't urgent, so @kbhat95 feel free to pick up something else. Have a look at source and setup local environment, we can discuss about other issues in the venue.

@vnbang2003
Copy link
Contributor

@iambibhas I think it would be good show google maps in local user group link of pssi website where we show usergroup list. We can extend same feature in python.org.in

@kishorbhat
Copy link

@vnbang2003 I was also thinking along those lines and have looked into the API. Can we discuss this today?

@vnbang2003
Copy link
Contributor

Sure . I will be coming a bit late till that point feel free to take up other tickets

@vnbang2003
Copy link
Contributor

@kbhat95 ,
Are you planing to take it up as per our discussion offline ?

@kishorbhat
Copy link

@vnbang2003 , yes.

Should I proceed by maintaining a list of lat / long? To me it seems like overkill, since the Google Maps API is quite flexible and can place markers based on address as well.

Also, for now should I just hardcode the API request string into the template? If not (i.e., if we're going the json way), I may need some help. :)

I'll begin work this weekend.

Regards,
kbhat95

@vnbang2003
Copy link
Contributor

@kbhat95 Let follow some data structure so it easier to add new in feature. Just make choice accordingly.

@kishorbhat
Copy link

@vnbang2003

This is what I have so far:

  • the map will look something like this: map
  • here's the code that generates the map request: code

The overlap of some user groups can be fixed easily; this is a prototype. :)
However, I am not sure how to integrate this into the template, because then the template will no longer be static.

@vnbang2003
Copy link
Contributor

@kbhat95 This looks good . Onblur over will it show link to localuser and meetup link as shown in the page ?
I think we can hardcode in html page as it very rare thing changes.

@kishorbhat
Copy link

@vnbang2003

The static maps API doesn't support text on hover-over. But since we are placing the map alongside the list of user groups, I can just indicate the letter next to the group in the list.

My question is: how do I embed this Python code and use it in template without having to define a view for it?

@vnbang2003
Copy link
Contributor

you need to define new view and point /usergroups/ to the new view which will solve the problem.
You can refer this url definitions
https://github.com/pythonindia/pssi.org.in/blob/develop/pssi/urls.py

@kishorbhat
Copy link

Sorry for the delay; got caught up in other work.

I find myself confused as to where to put the view that I've created. Do I create a new views.py withiin /pssi/ ?

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

No branches or pull requests

4 participants