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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:17:32+00:00 2026-06-09T15:17:32+00:00

I am trying to have a gx:track’s line to have different colour in different

  • 0

I am trying to have a gx:track’s line to have different colour in different part in the track depending on some conditions, but I am unable to find way to colour part of a track. I am using C# to generate the kml file. BTW my gx:track’s has extendedData.

I know I can apply lineStyle to the gx:track but that will only apply to the whole track, but I would like to have different colour along the track’s line.

Thanks in advance.

Terry

  • 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-09T15:17:33+00:00Added an answer on June 9, 2026 at 3:17 pm

    As previous answer says, you have to split track into segments and color each segment individually. There is no other way to do this using KML. But remember that this can create very large KML files for long tracks! So try to save some space by using shared styles.

    I would recommend creating one “gx:track” with low “draworder” for whole track and collection of placemarks with different colors and high “draworder” for every small segment of track.

    You can examine results of this approach here:
    http://www.zonefivesoftware.com/sporttracks/plugins/?p=dobrou-extensions (it is a plugin for application SportTracks).

    It’s my tool for visualization of GPS tracks. It does track coloring by creating placemark, with own color style, for every track segment.

    Here you can see examples tracks colored in KML:

    Track colored by speed #1 KMZ

    Track colored by speed #2 KMZ

    Track colored by elevation KMZ

    Track colored by speed #1
    Track colored by speed #2
    Track colored by elevation

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

Sidebar

Related Questions

I have been trying to track down some sample applications that are using Castle
I'm trying to track down some performance issues I have had with Django. There
I'm trying to track podcast data. They told me I have to use a
Trying to have my PHP script return some SQL table queries. Here's my script
We have a deadlock issue we're trying to track down. I have an deadlock
I am trying to use monitoring regions to track if users have visited landmarks.
I have been trying to track down a problem with an installation of RAD
This is a problem I have been trying to track down for a couple
I have been trying to find memory leak in my application for a week
I'm trying to track down two missing closing div tags in a 2500 line

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.