0

Is there a way for labels to be displayed in KML only when zoomed in (or out) beyond a certain scale range, just as it is possible in ArcGIS?

If exporting to KML from ArcGIS, I guess the first step is to label the features before exporting (correct me if I'm wrong).

How does one set a scale range for a KML file?

  • Thanks! I'll try this. How do I edit the code of a KML file, though? I know I can right-click the file in Google Earth and copy the code into a text editor, but how do I get the edited code back into the KML file? – Mhoram May 18 '13 at 22:53
  • There is a KML Tutorial that discusses your editing options. – PolyGeo May 19 '13 at 0:40
  • And, Layer to KML apparently does not write the label scale. – Mhoram May 19 '13 at 3:39
0

I think the closest thing to scale dependent layers in KML is Regions.

However, Layer To KML does not write them and I do not think they would support the concept of scale dependent labels. There is a document on KML support in ArcGIS that mentions that regions are not written.

Examples of KML items not supported in exported KML files include COLLADA, regions, and time spans (animations).

  • I have a triple-digit number of features (if that's the right terminology) in the KML file, so I don't think it's very practical to write the code in for every single feature. The features, however, are all in one folder, so I wonder if it's possible to put the <Region> tag right after the folder begins and a </Region> tag right before it ends. I suppose I'll have to indent all those thousands of lines between the two tags somehow. Do I have to have a LatLonAltBox to use the maxAltitude tag? Sorry for all these questions, I'm as new to KML as it gets. – Mhoram May 19 '13 at 3:49
  • I'm no KML expert either and, in any event, that sounds like a new question in its own right so is best raised outside of comments. – PolyGeo May 19 '13 at 3:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.