[Geoserver-devel] Strange KML Legend behavior

I have been using the legend=true option for the KML output, and I have run
into some strange behavior with the legend distorting after refreshing a
network link.

Steps to reproduce the issue:
1. Add the network link to GoogleEarth (KML listed below; uses the standard
tiger:poi data)
    The legend appears normally. (see image below)
2. Refresh the network link.
    The legend icon becomes larger, and has a white 'shadow' above and to
the right of it. (see image below)

The results are even more distorted for Legends that contain text. A few
extra images illustrating the behavior are attached.

Any ideas on how to prevent this from happening?

- Tyler

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1&quot;&gt;
<NetworkLink>
  <name>tiger:poi</name>
  <open>1</open>
<Url><href>http://localhost:8080/geoserver/wms?bbox=-74.01199448397661,40.70732689845813,-74.00841053684495,40.71216558957052&styles=&Format=kml&request=GetMap&layers=tiger:poi&width=457&height=550&srs=EPSG:4326&legend=true&lt;/href&gt;
  </Url>
</NetworkLink>
</kml>

Before refresh:
http://www.nabble.com/file/p11420672/GoogleEarth_GeoServer_legend_before_refresh.jpg
After refresh:
http://www.nabble.com/file/p11420672/GoogleEarth_GeoServer_legend_after_refresh.jpg

Before refresh:
http://www.nabble.com/file/p11420672/ph_legend_before_refresh.jpg
After refresh:
http://www.nabble.com/file/p11420672/ph_legend_after_refresh.jpg
--
View this message in context: http://www.nabble.com/Strange-KML-Legend-behavior-tf4020959.html#a11420672
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

Hi Tyler,

I think this is a google earth bug. I just tried with Google Earth 4.0
and could not replicate the bug. After upgrading to 4.1 I could indeed
reproduce it... Debugging with the request log it does not appear that
the legend is being requested more then once or anything so I would
guess that something strange is going on on the client side.

What version of Google earth are you using?

-Justin

Tyler Erickson wrote:

I have been using the legend=true option for the KML output, and I have run
into some strange behavior with the legend distorting after refreshing a
network link.

Steps to reproduce the issue:
1. Add the network link to GoogleEarth (KML listed below; uses the standard
tiger:poi data)
    The legend appears normally. (see image below)
2. Refresh the network link.
    The legend icon becomes larger, and has a white 'shadow' above and to
the right of it. (see image below)

The results are even more distorted for Legends that contain text. A few
extra images illustrating the behavior are attached.

Any ideas on how to prevent this from happening?

- Tyler

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1&quot;&gt;
<NetworkLink>
  <name>tiger:poi</name>
  <open>1</open>
<Url><href>http://localhost:8080/geoserver/wms?bbox=-74.01199448397661,40.70732689845813,-74.00841053684495,40.71216558957052&styles=&Format=kml&request=GetMap&layers=tiger:poi&width=457&height=550&srs=EPSG:4326&legend=true&lt;/href&gt;
  </Url>
</NetworkLink>
</kml>

Before refresh:
http://www.nabble.com/file/p11420672/GoogleEarth_GeoServer_legend_before_refresh.jpg
After refresh:
http://www.nabble.com/file/p11420672/GoogleEarth_GeoServer_legend_after_refresh.jpg

Before refresh:
http://www.nabble.com/file/p11420672/ph_legend_before_refresh.jpg
After refresh:
http://www.nabble.com/file/p11420672/ph_legend_after_refresh.jpg

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

Justin,

I was using GoogleEarthPro 4.1 when I had the legend issue.

Cheers,
Tyler

Justin Deoliveira-4 wrote:

Hi Tyler,

I think this is a google earth bug. I just tried with Google Earth 4.0
and could not replicate the bug. After upgrading to 4.1 I could indeed
reproduce it... Debugging with the request log it does not appear that
the legend is being requested more then once or anything so I would
guess that something strange is going on on the client side.

What version of Google earth are you using?

-Justin

Tyler Erickson wrote:

I have been using the legend=true option for the KML output, and I have
run
into some strange behavior with the legend distorting after refreshing a
network link.

Steps to reproduce the issue:
1. Add the network link to GoogleEarth (KML listed below; uses the
standard
tiger:poi data)
    The legend appears normally. (see image below)
2. Refresh the network link.
    The legend icon becomes larger, and has a white 'shadow' above and to
the right of it. (see image below)

The results are even more distorted for Legends that contain text. A few
extra images illustrating the behavior are attached.

Any ideas on how to prevent this from happening?

- Tyler

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1&quot;&gt;
<NetworkLink>
  <name>tiger:poi</name>
  <open>1</open>
<Url><href>http://localhost:8080/geoserver/wms?bbox=-74.01199448397661,40.70732689845813,-74.00841053684495,40.71216558957052&styles=&Format=kml&request=GetMap&layers=tiger:poi&width=457&height=550&srs=EPSG:4326&legend=true&lt;/href&gt;
  </Url>
</NetworkLink>
</kml>

Before refresh:
http://www.nabble.com/file/p11420672/GoogleEarth_GeoServer_legend_before_refresh.jpg
After refresh:
http://www.nabble.com/file/p11420672/GoogleEarth_GeoServer_legend_after_refresh.jpg

Before refresh:
http://www.nabble.com/file/p11420672/ph_legend_before_refresh.jpg
After refresh:
http://www.nabble.com/file/p11420672/ph_legend_after_refresh.jpg

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
View this message in context: http://www.nabble.com/Strange-KML-Legend-behavior-tf4020959.html#a11424015
Sent from the GeoServer - Dev mailing list archive at Nabble.com.