Coder Social home page Coder Social logo

Make a Map View about brigade HOT 10 CLOSED

codeforamerica avatar codeforamerica commented on August 11, 2024
Make a Map View

from brigade.

Comments (10)

ryanatwork avatar ryanatwork commented on August 11, 2024

Or leaflet maybe? Can @mlevans recommend something other than Google Maps?

from brigade.

mlevans avatar mlevans commented on August 11, 2024

I'd definitely go for Leaflet.

from brigade.

andyhull avatar andyhull commented on August 11, 2024

I'm going to work on this tomorrow during labs Friday. I'm thinking about D3 because we will need something other than a Mercator projection. If there is a compelling reason to use something else please let me know.

from brigade.

kmcurry avatar kmcurry commented on August 11, 2024

Fantastic @andyhull. Thanks for pursuing it.

from brigade.

andyhull avatar andyhull commented on August 11, 2024

During labs Friday I worked up a really basic D3 map:
http://andyhull.github.io/d3Mapping/

Not much to it so far, but before going any further I want to nail down some specifics. We want points for all the CfA brigades and the ability to click on those points to show a link to their event page? Does that sound correct? This map will replace the current Gmap on the brigade home page, so we are going for the same dimensions?

I'm also going to try to work out an easy way to update the points on the map as well.

from brigade.

kmcurry avatar kmcurry commented on August 11, 2024

πŸ‘

For now, let's consider the map separately from the dimensions & layout of the current homepage. I would like prominent, useful map.

Yes, close: we want the ability to click on those points and show a link to their brigade profile, ex:
http://brigade.codeforamerica.org/brigades/4

(and, separately, we want the ability for those profiles to better include links to & widgets from event sites, forums, groups and the like)

@noneck pointed to a map he likes: http://okfn.org/local/

from brigade.

andyhull avatar andyhull commented on August 11, 2024

Ok given this functionality I think it would be great to go with Leaflet/Mapbox.

from brigade.

yesezra avatar yesezra commented on August 11, 2024

I've been looking at this with @andyhull today, but I have some questions about what data is to be shown on the map. There is a map view (app/views/home/map.html.erb) that shows all of the Locations on a map, but it seems that this issue is more related to showing the locations of Brigades (not the locations where apps have been deployed).

If we do wish to show Brigades, then we'll need to store the location of each brigade on the Brigade mode, or infer its locations based on app deployments. The simplest approach would probably be to add three fields to the Brigade model:

  • "place" (string) – where the Brigade is located, i.e. city or region name
  • "latitude" (float)
  • "longitude" (float)

We could use the geocoder gem (as in the location model) to geocode the lat/long if missing, then write a method that will geoJSON based on this data to be shown on a map.

Does this make sense or would you prefer a different approach?

Also, where should this map be shown? Should we create a partial, or include it on a page somewhere?

from brigade.

kmcurry avatar kmcurry commented on August 11, 2024

Ignore map.html.erb (can delete it). I shouldn't have committed it.

I'd like a map of everything for which location can be associated. If
brigades model doesn't have a loc it prob needs one. But for now, anything
with a location already should be map viewable & the non-map attributes
displayed as tool tip or on some synced panel.

On Friday, May 10, 2013, Ezra Spier wrote:

I've been looking at this with @andyhull https://github.com/andyhulltoday, but I have some questions about what data is to be shown on the map.
There is a map view (app/views/home/map.html.erb) that shows all of the
Locations on a map, but it seems that this issue is more related to showing
the locations of Brigades (not the locations where apps have been deployed).

If we do wish to show Brigades, then we'll need to store the location of
each brigade on the Brigade mode, or infer its locations based on app
deployments. The simplest approach would probably be to add three fields to
the Brigade model:

  • "place" (string) – where the Brigade is located, i.e. city or region
    name
  • "latitude" (float)
  • "longitude" (float)

We could use the geocoder gem (as in the location model) to geocode the
lat/long if missing, then write a method that will geoJSON based on this
data to be shown on a map.

Does this make sense or would you prefer a different approach?

β€”
Reply to this email directly or view it on GitHubhttps://github.com//issues/55#issuecomment-17748578
.

Kevin Curry
Program Director
CfA Brigade
757.613.8158
GMT-5
http://brigade.codeforamerica.org

from brigade.

kmcurry avatar kmcurry commented on August 11, 2024

We'll assume that changes to models and possibly relationships may be required in some cases to achieve desired results. Here's what I'd like to see:

  1. Brigade locations
    • customizable placemark(s)
    • tooltip or panel display of brigade's profile information
    • TBD things that can be pulled from either brigade.codeforamerica.org, Meetup API or GitHub API
      • thumbnails of captains, # of members, link to next meetup, # apps deployed
    • Link to brigade's full profile under brigade.codeforamerica.org/brigades
  2. Heatmap or other non-invasive map of member locations

from brigade.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.