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

Live demos

Prerequisites

Usage

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

Options

Methods

CSS Classes

For Data File Generation

You do not need to do all of the steps mentioned below if you're going to use tz_json.tgz (the timezone data JSON files are in there already).

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

Requires:

To Generate all timezone data JSON files

Acknowledgments