FIMViz.jsAPI
    Preparing search index...

    Function bindHoverValue

    • Wire a RasterLayer's hover value to a tooltip. Uses the UNFILTERED map:hover bus event so the tooltip hides the moment the cursor leaves the raster footprint (valueAt → null). Requires fim.enableMapEvents().

      Parameters

      • layer: RasterLayer
      • Optionalopts: {
            format?: (v: number) => string;
            tooltip?: {
                destroy: () => void;
                el: Element;
                hide: () => void;
                show: (evt: any, html: string) => void;
            };
        } = {}

      Returns {
          off: () => void;
          tooltip: {
              destroy: () => void;
              el: Element;
              hide: () => void;
              show: (evt: any, html: string) => void;
          };
      }