dosx / timezone-picker

A Google Maps (or OpenLayers) + Olson Time Zones mashup to do a timezone picker
MIT License
160 stars 28 forks source link

Use OpenLayers instead of Google Maps #3

Closed mattjohnsonpint closed 11 years ago

mattjohnsonpint commented 11 years ago

This is an awesome control. I really appreciate the work you put into this.

Google Maps looks great, but it's not very friendly in terms of licensing: https://developers.google.com/maps/licensing

There is a free alternative called OpenLayers that would pair nicely with your timezone-picker logic: http://openlayers.org

Any chance you could integrate it into your timezone picker control? Perhaps as an option, leaving Google Maps available for those that want it.

This would also solve issue https://github.com/dosx/timezone-picker/issues/2 - since it would work offline.

Thanks!

andrewlin12 commented 11 years ago

Interesting - I'll look into it when I get a free moment. Anyone have any pointers on doing a Google Maps -> OpenLayers migration?

mattjohnsonpint commented 11 years ago

There's also Leaflet. Both can use a variety of map data providers, such as OpenStreetMap and others. There are even examples of using OpenLayers api against Google Maps.

I'm not very familiar with either. I found a comparison here

Here's another post that I found interesting

Also do a google search for using OpenLayers offline. There are lots of examples. I think it comes down to having some map tile data to point at. Since this is just for timezone selection, I think you wouldn't have to zoom too deep, so the amount of offline data should be relatively manageable.

mattjohnsonpint commented 11 years ago

Wow! It looks great! Thank you! Found one minor issue. I will log it separately.