cmv/cmv-app — pull request #208 by jebu75 (2014-09-14 03:03:01+00:00)
Title: Feature/dojo router

Proposal for a dojo/route implementation. Supports the following routes as well as loading config via url param as before although in this case it will be converted into a route to support map center and zoom:

/config
/config/longitude/latitude
/config/longitude/latitude/zoom

Also, moved all config loading into the controller. Index.html now just starts up the controller.

This is an initial implementation. I have not done extensive testing yet. I wanted to get it out there to get some feedback, generate some discussion etc. From what testing I have done and I think it introduces some really cool functionality.

For instance, you can update the config part of the route to switch to a different application and retain the same map center and zoom. This swapping could be achieved by a link in the application. I think this opens the door to creating more focused apps with fewer widgets.

Anyway, looking forward to feedback!