Can you use the image as a ground overlay? Then it will respond to zoom, but could get too small or too big. I don't know if the API supports screen overlays in KML, but that's another possibility. How about as the image of a custom control (external to the kml)? Static size but placed out of the way where it shouldn't be obstructed by placemarkers.
On Aug 31, 2:26 pm, springrider <[email protected]> wrote: > Thanks Grok > > I am fine about the code for displaying charts, my issue is about > having them displayed correctly in my google maps application. > For example, i have pies representing the proportion of male and > female by city using a KML: > > <Style> > <IconStyle> > <scale>0.512429878948922</scale> > <Icon> > <href>http://chart.apis.google.com/chart? > cht=p&chd=t: > 0,0.200836820083682,0.799163179916318,0&chs=200x200&chf=bg,s,ffffff00&chco=FF0000,FFFF00,00FF00,0000FF</ > href> > </Icon> > </IconStyle> > </Style> > <Point> > <coordinates>122,-8.5,0</coordinates> > </Point> > > My problem is that the radius of my pie is fixed and is not based on > the total population and does not change while zooming. > Moreover, sometimes, the pie is partially displayed or replaced by a > default marker. > If i use the same KML is Google Earth, it works fine but not in my 2D > maps. > > Thanks in advance for your help and for your feedback. > > Sylvain > > On 1 sep, 02:34, Grok Lobster <[email protected]> wrote: > > > > > Take a look at > > this,http://code.google.com/apis/chart/docs/gallery/pie_charts.html > > > On Aug 31, 12:26 am, springrider <[email protected]> wrote: > > > > Good morning > > > I am working on a project to display population statistics in the > > > Pacific Ocean ( proportion of male, female, age ranges etc...) > > > I have developed a small web mapping solution based on Google maps > > > API V3 and i need now to display my data using proportional pie chart. > > > After browsing the web, it seems that IconStyle and scale in KML can > > > not be used in Google maps to adapt the size of the pies according to > > > the zoom level. > > > Moreover, the display of the pies is not really good, sometimes the > > > default marker appears instead of the pie. > > > > Is there any workaround for being able to display pie charts in a > > > google maps such as what we have in google earth? > > > I know that it works nicely with Google earth API but, i need to keep > > > the project 2D maps. > > > > For the time being, my input data is in KML format but it can be > > > adapted if the solution requires it. > > > > I tried to explore on that side:http://google-maps-utility-library- > > > v3.googlecode.com/svn/tags/markerclusterer/1.0/examples/ > > > advanced_example.html? but do not really know if it could help me. > > > > Your input on this issue would be really welcome. > > > > Thanks in advance > > > > Sylvain- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-maps-js-api-v3?hl=en.
