Alvin050789 / kml-samples

Automatically exported from code.google.com/p/kml-samples
0 stars 0 forks source link

Mouse over causes icon to blank out #169

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

Relevant Application(s): 
Google Earth for windows, versions 4x and 3x

Steps to Reproduce: 
Create a style map that uses two different icons for the normal and highlighted 
styles. Very slowly move the mouse towards the icon. When it is a few pixels 
away from the icon, the icon disappears. Move in another pixel, and the 
highlighted icon is displayed. Move the mouse back out a pixel, and once again, 
no icon is displayed. Move out yet another pixel, and the normal icon is 
displayed.
Interestingly, if both the normal and highlighted styles use the same icon, the 
icon never blanks out. It only blanks out if two separate files are specified.
This issue appears to have been reported as early as 2005.

http://bbs.keyhole.com/ubb/showflat.php/Cat/0/Number/240711/an/0/page/0#240711

A fix would be to have one icon displayed at all times regardless of mouse 
position.

Reported By: OwhyheeRover

Original issue reported on code.google.com by api.roman.public@gmail.com on 14 Aug 2008 at 10:54

GoogleCodeExporter commented 8 years ago
Is this still showing up in Earth 4.3?

Original comment by api.roman.public@gmail.com on 2 Dec 2008 at 10:33

GoogleCodeExporter commented 8 years ago
Yes, it is.

Approach this icon very slowly from the east or west and you can get the icon 
to 
blank out completely.  Running GE 4.3.7284.3916 (beta) on MS Vista SP1.

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.2">
    <Document>
        <name>Icon Hides</name>
        <Style id="sn_ylw-pushpin">
            <IconStyle>
                <scale>1.1</scale>
                <Icon>
                    <href>http://maps.google.com/mapfiles/kml/pushpin/ylw-
pushpin.png</href>
                </Icon>
                <hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
            </IconStyle>
        </Style>
        <Style id="sh_ylw-pushpin">
            <IconStyle>
                <scale>1.1</scale>
                <Icon>
                    <href>http://www.earthpoint.us/favicon.ico</href>
                </Icon>
                <hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
            </IconStyle>
        </Style>
        <StyleMap id="msn_ylw-pushpin">
            <Pair>
                <key>normal</key>
                <styleUrl>#sn_ylw-pushpin</styleUrl>
            </Pair>
            <Pair>
                <key>highlight</key>
                <styleUrl>#sh_ylw-pushpin</styleUrl>
            </Pair>
        </StyleMap>
        <Placemark>
            <name>test</name>
            <LookAt>
                <longitude>-116.5029031494703</longitude>
                <latitude>43.57999737761139</latitude>
                <altitude>0</altitude>
                <range>110813.4359257435</range>
                <tilt>0</tilt>
                <heading>3.180554681463515e-015</heading>
            </LookAt>
            <styleUrl>#msn_ylw-pushpin</styleUrl>
            <Point>
                <coordinates>-116.5029031494703,43.57999737761139,0</coordinates>
            </Point>
        </Placemark>
    </Document>
</kml>

Original comment by bill.cl...@earthpoint.us on 2 Dec 2008 at 11:52