codeforamerica / cityvoice

A place-based call-in system for gathering and sharing community feedback
MIT License
47 stars 35 forks source link

Use Mapquest Open tiles by default #138

Open daguar opened 10 years ago

daguar commented 10 years ago

...instead of Mapbox.

It's free and open to use, but could consider a config option to use another tile provider (though it's so minor in this app, probably not worth it.)

migurski commented 10 years ago

Definitely a config option. It’s pretty common in Tilesville to use URL syntax like “http://example.com/{Z}/{X}/{Y}.png” in a config, which would cover Mapquest, Mapbox, Stamen, or really anyone else who uses the common XYZ tile naming convention. I think it might actually cover 99% of the OSM ecosystem; Bing does their own thing.

daguar commented 10 years ago

This stuff's should be all configured in the JS if you -- or someone else in the web mapping world -- wants to take a swing at it. No Ruby necessary!

migurski commented 10 years ago

Nice! I’ll look for it…

daguar commented 10 years ago

It's in hrrr: https://github.com/codeforamerica/cityvoice/blob/master/app/assets/javascripts/landing_script.js

migurski commented 10 years ago

Flagging for later reference: http://leafletjs.com/reference.html#tilelayer