views:

228

answers:

3

I have a program that generates a .shp file, and exports this as a kml file. I would like to be able to display my output using the standard google map 'map' style (gray background, yellow streets, etc) in google earth, or in the google earth api.

Is there a style guide or method that I should be using?

Any thoughts appreciated - I wasn't sure how to structure this question.

Thank you.

A: 

Well, you can load KML files into Google Maps using the API:

http://code.google.com/apis/maps/documentation/services.html#XML_Overlays

It'll certainly look like Google Maps then :-)

Doesn't help you much if you absolutely need the data visualised inside Google Earth though.

tomfanning
Thanks, Tom, but how does it look the same? In the example (http://code.google.com/apis/maps/documentation/examples/geoxml-kml.html) these are just randomly colored lines overlaid on the existing map. I want the kml that I load in, to look like an existing google map.
celenius
Errrr... what's in your KML file?
tomfanning
Nothing special - just a .shp polyline road network I generated (within ArcGIS). I could manually identify what all the colors and line thicknesses are in google maps and apply those settings to my data; but I wanted to see if it was defined anywhere.
celenius
Sounds like that's what you might end up having to do.
tomfanning
A: 

You can define styles in the KML and then apply them to the lines. I don't think there's any predefined styles that look like roads in google maps.

If you define the appearance in ArcGIS before exporting to KML, doesn't that set the appearance in Google Earth?

MarkJ
Yes - I just wasn't sure what settings to choose in ArcGIS
celenius
+1  A: 

Here is an ArcGIS style that will mimic the Google roads style. http://conversationswithmyself.com/181/

TheSteve0