What's the purpose of the tag in a Google Earth KML file?
I am writing a program that generates KML files, but I can't find a good description or documentation for what the <Snippet>
tag is actually used for. Does it get displayed in Google Earth?
kml google-earth
add a comment |
I am writing a program that generates KML files, but I can't find a good description or documentation for what the <Snippet>
tag is actually used for. Does it get displayed in Google Earth?
kml google-earth
add a comment |
I am writing a program that generates KML files, but I can't find a good description or documentation for what the <Snippet>
tag is actually used for. Does it get displayed in Google Earth?
kml google-earth
I am writing a program that generates KML files, but I can't find a good description or documentation for what the <Snippet>
tag is actually used for. Does it get displayed in Google Earth?
kml google-earth
kml google-earth
asked Jan 2 at 23:52
qkzoo1978qkzoo1978
135110
135110
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
A short description of the feature. In Google Earth, this description
is displayed in the Places panel under the name of the feature. If a
Snippet is not supplied, the first two lines of the<description>
are
used. In Google Earth, if a Placemark contains both a description and
a Snippet, the<Snippet>
appears beneath the Placemark in the Places
panel, and the<description>
appears in the Placemark's description
balloon. This tag does not support HTML markup.<Snippet>
has a
maxLines attribute, an integer that specifies the maximum number of
lines to display.
source: https://developers.google.com/kml/documentation/kmlreference
Typically if a description is long and/or contains rich HTML markup the snippet field can make the display in the places panel short and clean allowing a user to click a given placemark for full details.
– JasonM1
Jan 3 at 19:06
As mentioned above, snippet is used to customize the "subtitle" text in the Places/list view, from the default "first 2 lines of the description". For me, it's probably most useful for inserting an EMPTY snippet tag, which removes the "subtitle" line, and keeps it from displaying content from the description. Also note that this applies to Google Earth Pro, and not to the new Google Earth (v9+) for Web, Android and iOS, since that currently does not show any subtitle text in the "My Places" or list view.
– Christiaan Adams
Jan 4 at 6:13
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54014690%2fwhats-the-purpose-of-the-snippet-tag-in-a-google-earth-kml-file%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
A short description of the feature. In Google Earth, this description
is displayed in the Places panel under the name of the feature. If a
Snippet is not supplied, the first two lines of the<description>
are
used. In Google Earth, if a Placemark contains both a description and
a Snippet, the<Snippet>
appears beneath the Placemark in the Places
panel, and the<description>
appears in the Placemark's description
balloon. This tag does not support HTML markup.<Snippet>
has a
maxLines attribute, an integer that specifies the maximum number of
lines to display.
source: https://developers.google.com/kml/documentation/kmlreference
Typically if a description is long and/or contains rich HTML markup the snippet field can make the display in the places panel short and clean allowing a user to click a given placemark for full details.
– JasonM1
Jan 3 at 19:06
As mentioned above, snippet is used to customize the "subtitle" text in the Places/list view, from the default "first 2 lines of the description". For me, it's probably most useful for inserting an EMPTY snippet tag, which removes the "subtitle" line, and keeps it from displaying content from the description. Also note that this applies to Google Earth Pro, and not to the new Google Earth (v9+) for Web, Android and iOS, since that currently does not show any subtitle text in the "My Places" or list view.
– Christiaan Adams
Jan 4 at 6:13
add a comment |
A short description of the feature. In Google Earth, this description
is displayed in the Places panel under the name of the feature. If a
Snippet is not supplied, the first two lines of the<description>
are
used. In Google Earth, if a Placemark contains both a description and
a Snippet, the<Snippet>
appears beneath the Placemark in the Places
panel, and the<description>
appears in the Placemark's description
balloon. This tag does not support HTML markup.<Snippet>
has a
maxLines attribute, an integer that specifies the maximum number of
lines to display.
source: https://developers.google.com/kml/documentation/kmlreference
Typically if a description is long and/or contains rich HTML markup the snippet field can make the display in the places panel short and clean allowing a user to click a given placemark for full details.
– JasonM1
Jan 3 at 19:06
As mentioned above, snippet is used to customize the "subtitle" text in the Places/list view, from the default "first 2 lines of the description". For me, it's probably most useful for inserting an EMPTY snippet tag, which removes the "subtitle" line, and keeps it from displaying content from the description. Also note that this applies to Google Earth Pro, and not to the new Google Earth (v9+) for Web, Android and iOS, since that currently does not show any subtitle text in the "My Places" or list view.
– Christiaan Adams
Jan 4 at 6:13
add a comment |
A short description of the feature. In Google Earth, this description
is displayed in the Places panel under the name of the feature. If a
Snippet is not supplied, the first two lines of the<description>
are
used. In Google Earth, if a Placemark contains both a description and
a Snippet, the<Snippet>
appears beneath the Placemark in the Places
panel, and the<description>
appears in the Placemark's description
balloon. This tag does not support HTML markup.<Snippet>
has a
maxLines attribute, an integer that specifies the maximum number of
lines to display.
source: https://developers.google.com/kml/documentation/kmlreference
A short description of the feature. In Google Earth, this description
is displayed in the Places panel under the name of the feature. If a
Snippet is not supplied, the first two lines of the<description>
are
used. In Google Earth, if a Placemark contains both a description and
a Snippet, the<Snippet>
appears beneath the Placemark in the Places
panel, and the<description>
appears in the Placemark's description
balloon. This tag does not support HTML markup.<Snippet>
has a
maxLines attribute, an integer that specifies the maximum number of
lines to display.
source: https://developers.google.com/kml/documentation/kmlreference
edited Jan 3 at 0:11
qkzoo1978
135110
135110
answered Jan 3 at 0:00
Wouter van NifterickWouter van Nifterick
18.9k365116
18.9k365116
Typically if a description is long and/or contains rich HTML markup the snippet field can make the display in the places panel short and clean allowing a user to click a given placemark for full details.
– JasonM1
Jan 3 at 19:06
As mentioned above, snippet is used to customize the "subtitle" text in the Places/list view, from the default "first 2 lines of the description". For me, it's probably most useful for inserting an EMPTY snippet tag, which removes the "subtitle" line, and keeps it from displaying content from the description. Also note that this applies to Google Earth Pro, and not to the new Google Earth (v9+) for Web, Android and iOS, since that currently does not show any subtitle text in the "My Places" or list view.
– Christiaan Adams
Jan 4 at 6:13
add a comment |
Typically if a description is long and/or contains rich HTML markup the snippet field can make the display in the places panel short and clean allowing a user to click a given placemark for full details.
– JasonM1
Jan 3 at 19:06
As mentioned above, snippet is used to customize the "subtitle" text in the Places/list view, from the default "first 2 lines of the description". For me, it's probably most useful for inserting an EMPTY snippet tag, which removes the "subtitle" line, and keeps it from displaying content from the description. Also note that this applies to Google Earth Pro, and not to the new Google Earth (v9+) for Web, Android and iOS, since that currently does not show any subtitle text in the "My Places" or list view.
– Christiaan Adams
Jan 4 at 6:13
Typically if a description is long and/or contains rich HTML markup the snippet field can make the display in the places panel short and clean allowing a user to click a given placemark for full details.
– JasonM1
Jan 3 at 19:06
Typically if a description is long and/or contains rich HTML markup the snippet field can make the display in the places panel short and clean allowing a user to click a given placemark for full details.
– JasonM1
Jan 3 at 19:06
As mentioned above, snippet is used to customize the "subtitle" text in the Places/list view, from the default "first 2 lines of the description". For me, it's probably most useful for inserting an EMPTY snippet tag, which removes the "subtitle" line, and keeps it from displaying content from the description. Also note that this applies to Google Earth Pro, and not to the new Google Earth (v9+) for Web, Android and iOS, since that currently does not show any subtitle text in the "My Places" or list view.
– Christiaan Adams
Jan 4 at 6:13
As mentioned above, snippet is used to customize the "subtitle" text in the Places/list view, from the default "first 2 lines of the description". For me, it's probably most useful for inserting an EMPTY snippet tag, which removes the "subtitle" line, and keeps it from displaying content from the description. Also note that this applies to Google Earth Pro, and not to the new Google Earth (v9+) for Web, Android and iOS, since that currently does not show any subtitle text in the "My Places" or list view.
– Christiaan Adams
Jan 4 at 6:13
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54014690%2fwhats-the-purpose-of-the-snippet-tag-in-a-google-earth-kml-file%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown