开发者

How can I make kml data look like google maps?

开发者 https://www.devze.com 2022-12-24 15:52 出处:网络
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 outpu开发者_运维技巧t using the standard google map \'map\' style (gray background, y

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 outpu开发者_运维技巧t 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.


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


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.


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?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号