vizicities icon indicating copy to clipboard operation
vizicities copied to clipboard

Improve configuration options

Open robhawkes opened this issue 10 years ago • 0 comments

The current approach to options is neat to define options but it requires them to be passed around objects and things can start getting messy. One potential approach would use flags for configuration, like the debug flag that already exists:

VIZI.DEBUG = true;

The downside to this approach is that the options will be separate to the initialisation of ViziCities. It's neat though, and flexible.

I think some options should be kept within the ViziCities initialisation and not be used as flags, like initial coordinates. Anything that acts like a switch, beta feature or has added complexity should be kept as a flag.

Some example uses of flags would be:

  • Enabling the beta outlines feature for buildings
  • Disabling OpenStreetMap
  • Disabling control capping

robhawkes avatar May 10 '14 11:05 robhawkes