I remember this being raised a while back (see https://groups.google.com/d/topic/google-visualization-api/JFkxCzvU4JA/discussion). It's sort of a known issue (bug tracking id: http://code.google.com/p/google-visualization-api-issues/issues/detail?id=747) but I don't think anyone in the team had a chance to look at it so far.
As described in the issue, a possible workaround is to force a redraw. The second draw seems to use the zoom level correctly. R. On 4 February 2012 20:54, screenmutt <[email protected]> wrote: > Hello! > > I'm using this the map in this API, but no matter what I set the > zoomLevel to, nothing happens. > > Here is the code > > [code] > mapData = new google.visualization.DataTable(); > mapData.addColumn('number', 'Lat'); > mapData.addColumn('number', 'Lon'); > mapData.addColumn('string', 'Name'); > mapData.addRows(1); > mapData.setCell(0, 0, 37.4232); > mapData.setCell(0, 1, -122.0853); > mapData.setCell(0, 2, 'Car'); > > var options = { > mapType: 'normal', > zoomLevel: 0, > showTip: false > }; > > var map = new google.visualization.Map($('#map')[0]); > map.draw(mapData, options); > [/code] > > -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-visualization-api?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
