FIMViz.jsAPI
    Preparing search index...

    Function bindFeatureInfo

    • Wire a VectorLayer's feature clicks to an info window. The per-layer click fires only over a feature (dispatch hitTest), so this opens on the clicked feature. Requires fim.enableMapEvents().

      Parameters

      • layer: VectorLayer
      • Optionalopts: {
            infoWindow?: {
                close: () => void;
                destroy: () => void;
                el: Element;
                open: (evt: any, html: string | Node) => void;
            };
            render?: (feature: any) => string | Node;
        } = {}

      Returns {
          infoWindow: {
              close: () => void;
              destroy: () => void;
              el: Element;
              open: (evt: any, html: string | Node) => void;
          };
          off: () => void;
      }