labels are not showing in my google map...

88 views
Skip to first unread message

sanghamitra samanta

unread,
Jan 5, 2015, 6:18:46 AM1/5/15
to kml-suppor...@googlegroups.com
 hi ,

please help me out...i haveone kml file with polygons ,i have label for each polygon but in google map its not showing.
 here is my kml file

<?xml version='1.0' encoding='UTF-8'?>
<kml xmlns='http://www.opengis.net/kml/2.2'>
    <Document>
        <name>Untitled map</name>
        <description><![CDATA[]]></description>
        <Folder>
            <name>Untitled layer</name>
            <Placemark>
                <styleUrl>#poly-000000-0-255</styleUrl>
                <name></name>
                <ExtendedData>
                </ExtendedData>
                <Polygon>
                    <outerBoundaryIs>
                        <LinearRing>
                            <tessellate>1</tessellate>
                            <coordinates>83.3271575,17.7219028,0.0 83.327179,17.721805700000004,0.0 83.3272862,17.7218619,0.0 83.3275706,17.721994799999997,0.0 83.3275062,17.722086800000003,0.0 83.3271575,17.7219028,0.0</coordinates>
                        </LinearRing>
                    </outerBoundaryIs>
                </Polygon>
            </Placemark>
            <Placemark>
                <styleUrl>#poly-000000-1-76</styleUrl>
                <name>Polygon 2</name>
                <ExtendedData>
                </ExtendedData>
                <Polygon>
                    <outerBoundaryIs>
                        <LinearRing>
                            <tessellate>1</tessellate>
                            <coordinates>83.3272246,17.721905399999997,0.0 83.327238,17.721867000000003,0.0 83.3275196,17.721982,0.0 83.327482,17.722043300000003,0.0 83.3272246,17.721905399999997,0.0</coordinates>
                        </LinearRing>
                    </outerBoundaryIs>
                </Polygon>
            </Placemark>
        </Folder>
        <Style id='poly-000000-0-255'>
            <LineStyle>
                <color>ff000000</color>
                <width>0</width>
            </LineStyle>
            <PolyStyle>
                <color>FF000000</color>
                <fill>1</fill>
                <outline>1</outline>
            </PolyStyle>
        </Style>
        <Style id='poly-000000-1-76'>
            <LineStyle>
                <color>ff000000</color>
                <width>1</width>
            </LineStyle>
            <PolyStyle>
                <color>4C000000</color>
                <fill>1</fill>
                <outline>1</outline>
            </PolyStyle>
        </Style>
    </Document>
</kml>

duncangjacks

unread,
Jan 5, 2015, 9:03:04 PM1/5/15
to kml-suppor...@googlegroups.com
Hi, to label a polygon you need to include a <Point> as well as the <Polygon>, you can do this by using <MultiGeometry>
Reply all
Reply to author
Forward
0 new messages