コード例 #1
0
  public void preRender(KMLTraversalContext tc, DrawContext dc) {
    if (this.mustResolveHref()) // resolve the href to either a local file or a remote URL
    {
      // The icon reference may be to a support file within a KMZ file, so check for that. If it's
      // not, then just
      // let the normal SurfaceImage code resolve the reference.
      String href = this.parent.getIcon().getHref();
      String localAddress = (String) this.parent.getRoot().resolveLocalReference(href, null);

      this.setImageSource((localAddress != null ? localAddress : href), this.getCorners());
    }

    super.preRender(dc);
  }
コード例 #2
0
 /** {@inheritDoc} */
 public void render(KMLTraversalContext tc, DrawContext dc) {
   super.render(dc);
 }