Sergey
Total posts: 13,748
19 Апр 2012 21:05

Последние изменения: 02 Март 2014

Official Answer

In the google map template parameter you can see style chooser. Style is a simple JSON file located in /components/com_cobalt/library/js/mapstyles. Theer are some files already placed just for demonstration.

You can create new files according to Google style API or you can use Google Style Wizard

In the file you only save date without declaring any variable. Eg:

[

  {

    stylers: [

      { saturation: 62 },

      { lightness: -10 },

      { gamma: 0.64 }

    ]

  },{

    featureType: "road.local",

    stylers: [

      { saturation: 54 },

      { lightness: -34 }

    ]

  }

]

just save it to any file name with .json extension.


pepperstreet VIP
Total posts: 3,837
20 Апр 2012 07:32

:-) fun stuff. Did not expected such a quick implementation for my feature request. It was not crucial, but nice to have!


pepperstreet VIP
Total posts: 3,837
20 Апр 2012 07:36

Already know the Style Wizard because of my CommunityBuilder map extension, but I still need a driving license for it ;-) Or they should think about the GUI/GX once more!


Sergey
Total posts: 13,748
21 Апр 2012 06:16

I will make video tutorial how to create style including how to use their wizard.

Работает на Cobalt