Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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?

share|improve this question
    
I think the closest thing to scale dependency in KML is Regions but I don't know if they take account of label scale too or if Layer To KML writes them. –  PolyGeo May 18 '13 at 20:58
    
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? –  Hattifnatt 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. –  Hattifnatt May 19 '13 at 3:39
add comment

1 Answer

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).

share|improve this answer
    
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. –  Hattifnatt 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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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