Closed ardok closed 11 years ago
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
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.
.img
max-width: none
#zonepicker img { max-width: none; }
to prevent distortion of your map controls (thanks michaelahlers!)
This plugin uses a bunch of timezone data files on a web server.
Requires:
To Generate all timezone data JSON files
python script/gen_json.py <path-to-tz_world.shp> <output-dir>
Or you could just use the files from extracting tz_json.tgz.
tz_json.tgz
Not sure whether the result from gen_json.py is the same as tz_json.tgz
gen_json.py
https://github.com/dosx/timezone-picker/pull/10
Live demos
Prerequisites
Usage
See gmaps_example.html and 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 havemax-width: none
.Options
Methods
CSS Classes
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
python script/gen_json.py <path-to-tz_world.shp> <output-dir>
Or you could just use the files from extracting
tz_json.tgz
.Acknowledgments