NASAWorldWind / WebWorldWind

The NASA WorldWind Javascript SDK (WebWW) includes the library and examples for creating geo-browser web applications and for embedding a 3D globe in HTML5 web pages.
898 stars 384 forks source link

KML LabelStyle tag with scale 0 does not impact label. #849

Open fxa76 opened 3 years ago

fxa76 commented 3 years ago

Description

I am using KML LineString to create a flight path between 2 cities (ex attached: Paris-Shanghai), the line is created as expected but a label appears way off the line (see attached picture) and it seems there is no way of removing it (or placing it correctly). (just having the name tag empty still leaves a thin red line visible)

I tried using KML LabelStyle tag with scale 0 but it does not impact label.

Steps to Reproduce

  1. copy the attached kml file with content below and name it test.kml place it in example/data folder
  2. change example/KML.js top point to the file test.kml (change line 60 with this one) var kmlFilePromise = new WorldWind.KmlFile('data/test.kml', [new WorldWind.KmlTreeVisibility('treeControls', wwd)]);
  3. Navigate to example/KML.html

Expected behavior: label should not be visible

Actual behavior: label is visible

Reproduces how often: 100%

test.zip FlightPathCapture