Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6596727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:06:49+00:00 2026-05-25T18:06:49+00:00

Is there a way to refer to a placemark (probably by using the Placemark

  • 0

Is there a way to refer to a placemark (probably by using the Placemark ID attribute) ?

Use case:

Suppose you have a list of bus stops in a city. Some stops will be common to many bus lines. If Placemark referencing was possible, there could be a master list of all stops and each line (set in a separate Folder) could just refer to one of the above Placemarks. Selecting more than one Folder would display the other Placemarks for those lines, but the Placemarks already displayed would not show multiple times.

That would produce a lot less clutter, especially with the names displayed only once.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T18:06:49+00:00Added an answer on May 25, 2026 at 6:06 pm

    Unfortunately not as the Kml Schema does not support One-to-Many Relationships or symbolic links (apart from styles, but that is not really of any use to you.)

    However, one way you could emulate this is by using links in folder descriptions.

    To use your example, say you have a single file that has your master list of ‘bus stop’ place-marks defined in it. You could then define all your routes in folders with description links to the relevant stops.

    Obviously all the place-marks are always shown, but each ‘route folder’ would at least allow you to move between the stops for that route without having to duplicate the stop data.

    e.g.

    <kml>
      <Folder id="stops">
        <Placemark id="p1">
          <name>stop 1</name>
        </Placemark>
        <Placemark id="p2">
          <name>stop 2</name>
        </Placemark>
        <Placemark id="p3">
          <name>stop 3</name>
        </Placemark>
        <Placemark id="p4">
          <name>stop 4</name>
        </Placemark>
        </Folder>
        <Folder id="r1">
          <name>route 1</name>
          <description>
            <![CDATA[
            <a href="#p1;balloonFlyto">stop 1</a>
            <a href="#p3;balloonFlyto">stop 3</a>
            ]]>
          </description>
        </Folder>
        <Folder id="r2">
          <name>route 2</name>
          <description>
            <![CDATA[
            <a href="#p1;balloonFlyto">stop 1</a>
            <a href="#p2;balloonFlyto">stop 2</a>
            <a href="#p4;balloonFlyto">stop 4</a>
            ]]>
          </description>
        </Folder>
    </kml>
    

    EDIT

    You could also simply keep your data in something that does support one-to-many, like a mysql database. You could then query it however you liked to produce the KML as required based on the request made. Take a look at this Database Driven Earth App Using PHP & MySQL with the Earth API it goes through how you might set up a database to hold your data, how to query it and output KML from it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When you have a derived class, is there an simpler way to refer to
Is there a way to refer to a Javascript variable with a string that
In current w3c version of XSD, is there a way to refer to parent
Is there a possible way to refer an object through it's name in Vb.Net?
Is there way to copy a file into Plone with WebDAV and have Plone
Is there a way to refer to the currently executing anonymous function in Lua?
Is there a standard way to refer to this idiom of telescopic method call
Is there any way to address/refer to a SQL SERVER table, by its Unique
Is there a sensible, clean way to refer to application resources from static initalizer
Is there any way to refer more than one widget (ui controls) by a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.