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 9151015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:41:52+00:00 2026-06-17T11:41:52+00:00

I have a html file with a Google Map view embedded, and I’m using

  • 0

I have a html file with a Google Map view embedded, and I’m using JavaScript to load a separate kml file’s data into the Google Map. In the KML file, I have the latitude/longitude coordinates of a car’s route, and I’ve used the LineString function to connect the coordinates into a single line. I’m wondering how to now animate a placemark on the LineString drawn by my given coordinates.

I’ve looked at this example, and it’s sort of what I’m trying to do, but the example doesn’t use a KML file. This example will animate a route given by latitude and longitude coordinates, but the command gx:track is only supported by Google Earth, and not Google Maps, according to my own testing and this thread.

Essentially, I’m trying to animate a placemark through predetermined coordinates on a web-based Google Maps interface. Here’s some of my code:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="2.2.xsd">
<Document>
<Placemark id="car">
 <name>Initial position of car</name>
 <description>Latitude: 31.2844 Longitude: 121.436</description>
 <Point>
 <coordinates>121.436,31.2844</coordinates>
 </Point>
 </Placemark>
<Placemark><LineString><coordinates>
121.436,31.2844,0 
121.435,31.2857,0 
121.435,31.2863,0 
...more coordinates here...
</coordinates></LineString></Placemark>
</Document>
</kml>

How would I move the placemark with id of “car” along the linestring?

  • 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-17T11:41:53+00:00Added an answer on June 17, 2026 at 11:41 am

    You can load your placemarks / lines from KML but in google maps you cannot define an animation (like a tour). To accomplish what you are asking you have to manipulate the map using the JavaScript API based on the contents of your KML file. That is – the example you posted is a great start point.

    Also – I am working on something similar to this now (will be part of a deliverable due sometime over the next month – two). If you beat me to completing it you should post back with any lessons learned.

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

Sidebar

Related Questions

I have a written up HTML file using the Google Maps API v3. All
I have an HTML file and i would like to parse through it using
I have a problem with a Javascript request to the Google Map Api Web
I have the following issue. I have a google map (using YM4r + Geokit)
Good day all, I have an html file as follows, which displays a Google
I am generating a KML file (which is XML formatted for a Google Map)
I created a simple Google Maps webpage using Javascript. I parse an XML file
I have html-file. I have to replace all text between this: [%anytext%]. As I
I have a html file like following: <form action=/2811457/follow?gsid=3_5bce9b871484d3af90c89f37 method=post> <div> <a href=/2811457/follow?page=2&amp;gsid=3_5bce9b871484d3af90c89f37>next_page</a> &nbsp;<input
I have following html file (1.html) and once I open it in my browser

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.