Open kracekumar opened 9 years ago
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.
I'd like to take this up. However, I have a few questions:
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.
@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
@vnbang2003 I was also thinking along those lines and have looked into the API. Can we discuss this today?
Sure . I will be coming a bit late till that point feel free to take up other tickets
@kbhat95 , Are you planing to take it up as per our discussion offline ?
@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
@kbhat95 Let follow some data structure so it easier to add new in feature. Just make choice accordingly.
@vnbang2003
This is what I have so far:
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.
@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.
@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?
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
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/ ?
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.