Google Maps!

73 views
Skip to first unread message

cimear...@ci.uchicago.edu

unread,
Jul 16, 2009, 11:43:10 AM7/16/09
to Thematic Mapping API
Hi. I would like to emulate the Pie Graph example with my own data,
but I would like it to be displayed in Google Maps instead of in
Google Earth. Could someone summarize the changes I would have to
make for this to happen? Presumably when I use the API, it generates
a KML file and then something like a Google Earth Plugin object and
feeds it the KML data. I don't really understand how this could
happen with Google Earth, though. Does anyone have any thoughts on
this?

Thanks!

-Wai Lee

cimear...@ci.uchicago.edu

unread,
Jul 16, 2009, 12:03:24 PM7/16/09
to Thematic Mapping API
According to the documentation, the draw() function has no return
type. However, when I look at the examples, we have:

var kml = map.draw(data, options);

This suggests that the draw function actually returns a giant KML
string, which is then drawn into Google Earth with,

var kmlObject = earth.parseKml(kml);
earth.getFeatures().appendChild(kmlObject);

Now, it seems like I could just work within the Javascript API, take
the variable kml, and just import it into Google maps with the ggeoxml
object. Does this make sense?

Thanks.

On Jul 16, 10:43 am, "cimearth-...@ci.uchicago.edu"
Reply all
Reply to author
Forward
0 new messages