开发者

Can I add a self defined layers in google earth through the kml?

开发者 https://www.devze.com 2023-03-09 17:36 出处:网络
I want a function ,when I choose myself defined layer,then the aim come out.such as in Google earth, when I choose the \"water body开发者_运维问答 outlines\",the water area outlines displayed.Can I ac

I want a function ,when I choose myself defined layer,then the aim come out.such as in Google earth, when I choose the "water body开发者_运维问答 outlines",the water area outlines displayed.Can I achieve this in the Google earth? or there is another way to achieve this?


The layers are provided by the Google Earth server, not by KML. So no - it is not possible to add custom layers to GE using straight KML.

You could of course put the water body outlines into a KML object and have it be displayed in Google Earth. It'd show up under the "places" tree (in temporary places -- until the user chooses to save it to my places.) When your KML object is in temp/my places the user can toggle it on and off just like a layer, from the user perspective it looks and feels the same.

From the administrator's perspective it's not the best approach because your underlying KML becomes easily obtainable. All the user has to do is click on your KML object in temp/my places and press CTRL+C to copy the KML to the clipboard. Then they can simply CTRL+V into notepad (or some other text editor) and read/edit the KML. Something to keep in mind.

If you have a Google Earth Enterprise (Fusion) Server, the sky's the limit. You can bake whatever you want into the layers panel. But that's only if you have an enterprise server and all your users are using GE Enterprise.

0

精彩评论

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