Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Added support for defining gm views with objects #1621
That looks much better than #1618!
Unfortunately the screenshot link http://i.imgur.com/iGZO9iw.png seems to be broken. Note that you can also upload the images to GitHub (I uploaded the second one).
Views must be enabled in the map properties since this config comes before views are defined unless you can think of a better way of auto detecting them. I didn't want to iterate through the layers again just to find out if the views were defined. But we could?
I think we should really just iterate the layers twice. It's not noticeable to the use, but needing to manually set another property to enable the views definitely is. :-)
See other comments inline.
I just noticed the indentation was off in two places and the search for views could be aborted properly when a view is found. So just some minor changes and then I will merge this. Thanks a lot for your efforts!