codeeu / coding-events

A Django app for adding EU Code Week events and showing them on a map.
http://events.codeweek.eu
MIT License
17 stars 36 forks source link

using OpenStreetMap rather than Google Maps #341

Open harry-wood opened 9 years ago

harry-wood commented 9 years ago

Nice site! I see you're big supporters of open licensing too, so I wonder if you have thought about...

...using OpenStreetMap rather than Google Maps? By using OpenStreetMap you would be supporting this not-for-profit global collaboration, and setting an example to other coders to do the same. We're a good cause, working to create an open licensed map of world. Coders of all people should be supportive of that!

In practice what this would mean in your codebase, is probably switching to use an open source web mapping library called "LeafletJS". There would be a certain amount of re-coding the logic you have for placing markers etc (It's a very similar and very simple API to google maps, but would require some re-writing) I see you're doing "markecluster" things in google maps. There is an equivalent plugin for Leaflet.

With OpenStreetMap you have a choice of different "tile servers" to connect to, with different rendering styles. Mapquest Open is a nice style for example (code sample to use that)

goranche commented 9 years ago

I might try to create a branch to test this out (there is more to it than just the mapping)...
I've quite some experience with leaflet and OSM, so... we'll see

anyway, thanks for the suggestion :+1:

goranche commented 9 years ago

also, @harry-wood ... anyone can fork the project and create a pull request with the needed changes, so if you feel up for it, just do it :wink: :+1: