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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:09:13+00:00 2026-06-12T04:09:13+00:00

I’ve been using Apple’s KMLViewer code to show tracks on my MKMapView. I create

  • 0

I’ve been using Apple’s KMLViewer code to show tracks on my MKMapView. I create the KML files by saving a place from Google Earth as a KML file, but the tracks won’t display in the map unless I change the style map in the KML file.

At the beginning of the KML file is the style map:

<Style id="lineStyle0000">
    <LineStyle>
        <color>ff0600ff</color>
        <width>4</width>
    </LineStyle>
</Style>
<StyleMap id="lineStyle11000">
    <Pair>
        <key>normal</key>
        <styleUrl>#lineStyle0000</styleUrl>
    </Pair>
    <Pair>
        <key>highlight</key>
        <styleUrl>#lineStyle01</styleUrl>
    </Pair>
</StyleMap>
<Style id="lineStyle01">
    <LineStyle>
        <color>ff0600ff</color>
        <width>4</width>
    </LineStyle>
</Style>

And the track within the KML file starts with

<Placemark>
    <name>Track01</name>
    <visibility>0</visibility>
    <styleUrl>#lineStyle11000</styleUrl>
    <LineString>
        <tessellate>1</tessellate>
        <coordinates>...

When I run the app, the track doesn’t show up at all. If I change the styleUrl tag in the beginning of the track from #lineStyle11000 to #lineStyle0000, it shows up fine. This is easy enough to do when I have one or two tracks to display, but it’s an annoyance. When I have ten or fifteen tracks to display in one KML file, it really eats up some time.

Is there any way to avoid this problem? I keep all of my tracks in Google Earth so that I can manage them easily, but I’d like to not have to manually change the text of the file every time I need to put it in an app.

Thanks

  • 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-12T04:09:15+00:00Added an answer on June 12, 2026 at 4:09 am

    The solution I’ve been using doesn’t really fix the problem, but gets around it okay. Google Earth exports the kml file with the style maps, but if you send the kml file through GPSVisualizer with an output format of Google Earth KML, it just converts the entire file into the simpler format that Apple’s KMLViewer can read, while keeping all the colors and line sizes.

    Kind of a cop out, but it works.

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

Sidebar

Related Questions

I have thousands of HTML files to process using Groovy/Java and I need to
I have a bunch of posts stored in text files formatted in yaml/textile (from
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I have this code to decode numeric html entities to the UTF8 equivalent character.

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.