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

  • SEARCH
  • Home
  • 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 8600927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:43:37+00:00 2026-06-12T01:43:37+00:00

My KML file is: <?xml version=1.0 encoding=UTF-8?> <kml xmlns=http://earth.google.com/kml/2.1> <Document> <NetworkLink> <Link> <href>http://localhost/test.php</href> <refreshMode>onInterval</refreshMode>

  • 0

My KML file is:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
    <Document>
      <NetworkLink>
        <Link>
          <href>http://localhost/test.php</href>
          <refreshMode>onInterval</refreshMode>
          <refreshInterval>1</refreshInterval>
        </Link>
      </NetworkLink>
    </Document>
</kml>

Localhost/test.php returns:

<Document>
  <Placemark>
    <name>Testing</name>
    <description>
      Test
    </description>
    <Point>
      <altitudeMode>absolute</altitudeMode>
      <coordinates>0,0,0</coordinates>
    </Point>
  </Placemark>
</Document>

When you click on the icon, it opens the ballon that says “test”, then after one second, when the kml is refreshed, the balloon closes, how can I fix this?

  • 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-06-12T01:43:38+00:00Added an answer on June 12, 2026 at 1:43 am

    In order to have the balloon open, just add an <open>1</open> tag to the placemark

    <Document>
      <Placemark>
        <name>Testing</name>
        <open>1</open>
        <description>
          Test
        </description>
        <Point>
          <altitudeMode>absolute</altitudeMode>
          <coordinates>0,0,0</coordinates>
        </Point>
      </Placemark>
    </Document>
    

    However, this means the placemark will ALWAYS be open (balloon showing) when the link is refreshed.

    If you want to refresh the kml and leave the balloon open or closed depending on it’s current state, then you need to look into the UPDATE command instead, and use it to update only certain parts of the currently loaded KML, rather than replacing (reloading) the whole KML.

    So it really comes down to, why are you Refreshing the KML in the first place??

    EDIT: To answer question in comments

    Use the CHANGE feature of the UPDATE

    <Update> 
        <targetHref>http://www.domain.com/file.kml</targetHref> 
        <Change> 
          <Point targetId="point123"> 
            <coordinates>-95.48,40.43,0</coordinates>
          </Point> 
        </Change> 
      </Update> 
    

    That will change the coordinates of a placemark with an id of point123 that was loaded in the kml mentioned as the targetHref (which was loaded via a NetworkLink)

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

Sidebar

Related Questions

i download a kml file : <?xml version=1.0 encoding=UTF-8?> <kml xmlns=http://www.opengis.net/kml/2.2> <Document> <Style id=transGreenPoly>
My KML file looks like this: <?xml version=1.0 encoding=utf-8?> <kml xmlns=http://www.opengis.net/kml/2.2> <Document> <Style id=s1>
I generate some xml (actually google kml file) $kml = array('<?xml version=1.0 encoding=UTF-8?>'); $kml[]
I am retrieving a Google Earth .kml (xml) file and using the content to
I have this xml result from calling the page getRout.php <?xml version=1.0 encoding=UTF-8?> <kml
I'm trying to import the kml xml Google earth file into an application, but
I've created a simple KML file that works in the standalone Google Earth client,
when i do alert it returning string like this: data <?xml version=1.0 encoding=utf-8 ?>
I am generating a KML file (which is XML formatted for a Google Map)
Does anyone know why loading a KML file into my sencha touch google map

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.