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

Update Readme #9

Closed ardok closed 11 years ago

ardok commented 11 years ago

Live demos

See gmaps_example.html and openlayers_example.html

./setup_example.sh
./run.sh
http://localhost:8000/gmaps_example.html
http://localhost:8000/openlayers_example.html

Setup

To use in your site, extract tz_json.tgz to a web-accessible location on your server and pass in the path as the jsonRootUrl option

For those who use OpenLayers with Twitter Bootstrap, you need to make .img to have max-width: none.

Options

#zonepicker img {
  max-width: none;
}
to prevent distortion of your map controls (thanks michaelahlers!)

For Data File Generation

This plugin uses a bunch of timezone data files on a web server.

Requires:

To Generate all timezone data JSON files

Or you could just use the files from extracting tz_json.tgz.

Acknowledgments

ardok commented 11 years ago

Not sure whether the result from gen_json.py is the same as tz_json.tgz

ardok commented 11 years ago

https://github.com/dosx/timezone-picker/pull/10