It is possible that the problem is that you are using the old and deprecated GeoMap visualization, which may not have a map of the Romanian provinces. The GeoChart visualization<https://developers.google.com/chart/interactive/docs/gallery/geochart>replaced GeoMaps a long time ago, and does support the Romanian provinces: http://jsfiddle.net/asgallant/KjwLP/.
On Tuesday, October 29, 2013 5:58:51 AM UTC-4, leev wrote: > > > hi, > > i'm using this "Country code,Country name,Provinces" CSV file (see it > attached) to draw Romanian map with regions. > I've tested the codes for 10 different countries: France, Bulgaria, Nepal, > Panama, etc. and all of these codes are fine EXCEPT Romanian ones. > > > RO,Romania,RO-AB;RO-AG;RO-AR;RO-B;RO-BC;RO-BH;RO-BN;RO-BR;RO-BT;RO-BV;RO-BZ;RO-CJ;RO-CL;RO-CS;RO-CT;RO-CV;RO-DB;RO-DJ;RO-GJ;RO-GL;RO-GR;RO-HD;RO-HR;RO-IF;RO-IL;RO-IS;RO-MH;RO-MM;RO-MS;RO-NT;RO-OT;RO-PH;RO-SB;RO-SJ;RO-SM;RO-SV;RO-TL;RO-TM;RO-TR;RO-VL;RO-VN;RO-VS > > this is the HTML code: > > [...] > <html> > > <head> > <script type='text/javascript' src='https://www.google.com/jsapi > '></script> > <script type='text/javascript'> > google.load('visualization', '1', {'packages': ['geomap']}); > google.setOnLoadCallback(drawMap); > > function drawMap() { > var data = google.visualization.arrayToDataTable([ > ['Province', 'Percent'], > // ['FR-A', 3.78], > // ['FR-B', 4.09] > ['RO-MM', 3.78], > ['RO-TM', 3.52], > > ]); > var options = {}; > // options ['region'] = 'FR'; > options ['region'] = 'RO'; > options ['dataMode'] = 'regions'; > options ['width'] = '850'; > options ['height'] = '650'; > var container = document.getElementById('map_canvas'); > var geomap = new google.visualization.GeoMap(container); > geomap.draw(data, options); > }; > </script> > </head> > <body> > <div id='map_canvas'></div> > </body> > </html> > > [...] > > Are these Romanian codes obsoletes ? Did someone succed drawing Romanian > map with regions ? > (like this map of France for example: http://webtest.duia.ro/) > > any hint is very appreciated, > thanks, > Liviu. > -- 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 http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/groups/opt_out.
