• I’m trying to get a kml file to work the way I would like to with this plugin. The map centers OK, but the info window only opens (slow) on click. Ideally the colors of a polygon should change on hover, but more important is that the info window opens on hover.

    This is the first part of the kml file.

    <?xml version='1.0' encoding='UTF-8'?>
    <kml xmlns='https://www.opengis.net/kml/2.2'>
    	<Document>
    		<name>KML</name>
    		
    		<Style id='Style2-polygon-3'>
    			<LabelStyle>
    				<scale>0.0</scale>
    			</LabelStyle>
    			<LineStyle>
    				<color>ffffffff</color>
    				<width>1</width>
    			</LineStyle>
    			<PolyStyle>
    				<color>ff3366ff</color>
    			</PolyStyle>
    			<BalloonStyle>
    				<text>$[description]</text>
    			</BalloonStyle>
    		</Style>
    		<Style id='Style2-polygon-3-hover'>
    			<LineStyle>
    				<color>ffffffff</color>
    				<width>1</width>
    			</LineStyle>
    			<PolyStyle>
    				<color>ff009966</color>
    			</PolyStyle>
    			<BalloonStyle>
    				<text>$[description]</text>
    			</BalloonStyle>
    		</Style>
    		<StyleMap id='Style2-polygon-3-map'>
    			<Pair>
    				<key>normal</key>
    				<styleUrl>#Style2-polygon-3</styleUrl>
    			</Pair>
    			<Pair>
    				<key>highlight</key>
    				<styleUrl>#Style2-polygon-3-hover</styleUrl>
    			</Pair>
    		</StyleMap>
    		<Placemark>
    			<name>GM0003</name>
    			<snippet></snippet>
    			<description><![CDATA[<div class="googft-info-window">
    <b>GM_CODE:</b> GM0003<br>
    <b>GM_NAAM:</b> Appingedam<br>
    <b>naam-code:</b> 
    </div>]]></description>
    			<styleUrl>#Style2-polygon-3-map</styleUrl>
    			<ExtendedData>
    				<Data name='GM_NAAM'>
    					<value>Appingedam</value>
    				</Data>
    				<Data name='naam-code'>
    					<value></value>
    				</Data>
    			</ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>6.886384,53.345787,0.0 6.886259,53.342194,0.0 6.883163,53.339536,0.0 6.88282,53.329654,0.0 6.882864,53.329472,0.0 6.884088,53.324432,0.0 6.884133,53.324245,0.0 6.883884,53.317058,0.0 6.885228,53.312547,0.0 6.887962,53.31084,0.0 6.888165,53.310713,0.0 6.887759,53.299034,0.0 6.884729,53.298173,0.0 6.860643,53.295775,0.0 6.860704,53.297571,0.0 6.851707,53.297681,0.0 6.846995,53.291447,0.0 6.838244,53.291553,0.0 6.837999,53.291556,0.0 6.829032,53.292563,0.0 6.826243,53.298888,0.0 6.817156,53.2963,0.0 6.814745,53.298562,0.0 6.814246,53.299031,0.0 6.808484,53.306289,0.0 6.811514,53.307152,0.0 6.804361,53.317091,0.0 6.804339,53.317123,0.0 6.804384,53.318511,0.0 6.804486,53.321615,0.0 6.806105,53.325191,0.0 6.807662,53.326967,0.0 6.807665,53.32697,0.0 6.810696,53.327833,0.0 6.815198,53.32778,0.0 6.824232,53.328571,0.0 6.832665,53.32847,0.0 6.833236,53.328463,0.0 6.834736,53.328445,0.0 6.836438,53.329095,0.0 6.839299,53.330187,0.0 6.83936,53.331984,0.0 6.835068,53.338327,0.0 6.833718,53.342837,0.0 6.83528,53.344616,0.0 6.836841,53.346395,0.0 6.842847,53.346322,0.0 6.850353,53.346231,0.0 6.860801,53.344306,0.0 6.863772,53.343371,0.0 6.866775,53.343334,0.0 6.874311,53.34414,0.0 6.875968,53.348613,0.0 6.885989,53.345894,0.0 6.886384,53.345787,0.0</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Open info box on hover with kml file?’ is closed to new replies.