Trying to import a path into Google Maps

78 views
Skip to first unread message

Jeffrey C. Jacobs

unread,
Mar 2, 2015, 9:24:59 AM3/2/15
to kml-support-g...@googlegroups.com
<?xml version=""1.0"" encoding=""UTF-8""?>
  <Document>
    <name>302 Miles</name>
    <description>Test.</description>
    <Style id=""yellowLineGreenPoly"">
      <LineStyle>
        <color>7f00ffff</color>
        <width>4</width>
      </LineStyle>
      <PolyStyle>
        <color>7f00ff00</color>
      </PolyStyle>
    </Style>
    <Placemark>
      <name>Absolute Extruded</name>
      <description>Transparent green wall with yellow outlines</description>
      <styleUrl>#yellowLineGreenPoly</styleUrl>
      <LineString>
        <extrude>1</extrude>
        <tessellate>1</tessellate>
        <altitudeMode>absolute</altitudeMode>
        <coordinates>
          -77.3353163333333,38.5482638333333,-8
          -77.4360898333333,37.5365338333333,16
          -77.4360896666667,37.5365336666667,16
          -77.4360896666667,37.5365333333333,16
          -77.4360896666667,37.5365335,16
          -77.4360898333333,37.5365335,16
          -77.43609,37.5365333333333,16
          -77.4360896666667,37.5365331666667,16
          -77.4360895,37.536533,16
          -77.4360893333333,37.5365326666667,16
          -77.4360891666667,37.5365326666667,16
        </coordinates>
      </LineString>
    </Placemark>
  </Document>
</kml>

This is a chopped down version of the 7,000 point path I'm trying to create.  Can someone tell me why when I try to import this layer nothing happens and the layer keeps offering to let me import?  How do I add this path layer to my map?  What is my typo?

Thanks.

Noisette

unread,
Mar 3, 2015, 9:02:09 AM3/3/15
to kml-support-g...@googlegroups.com
Hi Jeffrey, I was able to import your path after removing the double quotes on the 1st, 2nd and 6th lines.


<?xml version=""1.0"" encoding=""UTF-8""?>
  <Document>
    <name>302 Miles</name>
    <description>Test.</description>
    <Style id=""yellowLineGreenPoly"">

becomes


<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
  <Document>
    <name>302 Miles</name>
    <description>Test.</description>
    <Style id="yellowLineGreenPoly">

In general, it's better to ask this type of question in the Google Maps forum: https://productforums.google.com/forum/#!forum/maps/categories.


Jeffrey C. Jacobs

unread,
Mar 3, 2015, 9:22:04 AM3/3/15
to kml-support-g...@googlegroups.com
Thank you Noisette; I forgot that grabbing the text from a spreadsheet would introduce the extra quote marks.  I thought though this was a noob question and this was a noob forum.  Sorry if I misinterpreted that.
Reply all
Reply to author
Forward
0 new messages