Hi Nathan, We have talked internally at length about combining the different ways of rendering the GeoChart, and have thought long and hard about how to do this. We eventually chose to punt on this issue.
Personally, I don't like the idea of passing an array of things to chart.draw very much, since that results in an inconsistent API, and this is one of the things many of the users of our API (including our own Controls and Dashboards) depend on. Adding a new form of arguments to chart.draw would make things more complicated and confusing in that respect. Our preference would be to either specify this information in one DataTable or via options, but we were not able to decide on a consistent way to do this. The Goole Maps API vs Charts is a much deeper issue than I'd like to get into here, but suffice it to say that these two APIs are developed by different teams, that ultimately have different goals and use cases. On Sun, Mar 6, 2016 at 12:28 PM Nathan Meryash <[email protected]> wrote: > It would be great if the chart.draw() method supported arrays so that one > could draw regions and markers on the same map. It seems necessary as one > needs to call different options arguments for regions and markers. > Especially the displayMode. > > Example: > > chart.draw([ > [regionsData, regionsOptions], > [markersData, markersOptions] > ]); > > You called the draw() method with an Array rather than a DataTable or > DataView > > It's also not clear why Google Maps Javascript API > <https://developers.google.com/maps/documentation/javascript/>and Charts > <https://google-developers.appspot.com/chart/interactive/docs/gallery/map> > aren't consolidated into one full featured API? > > There are also partially featured custom Maps in Google Maps and Google > Sheets, it would be great to have more features by combining these two. > > -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to > [email protected]. > Visit this group at > https://groups.google.com/group/google-visualization-api. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-visualization-api/a9a2de6c-3014-4952-acc6-2c49fca4188d%40googlegroups.com > <https://groups.google.com/d/msgid/google-visualization-api/a9a2de6c-3014-4952-acc6-2c49fca4188d%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- *[image: unnamed.gif]• Sergey Grabkovsky• Software Engineer• Google, Inc• [email protected] <[email protected]>* -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-visualization-api. To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CAEwwup5jpemRKoJ11MMRe1Qk-wUGsVfPtnihd9xjoyXXuo7ZYw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
