Interface IJavascriptComponent

    • Method Detail

      • getJSremove

        String getJSremove​(IOpenLayersMap map)
        Parameters:
        map -
        Returns:
        the rendered javascript to remove this component from the map.
      • getJSadd

        String getJSadd​(IOpenLayersMap map)
        Parameters:
        map -
        Returns:
        the rendered javascript to add this component to the map
      • getId

        String getId()
        Note: currently the naming of a component is related to the concrete class i.e. a WMS layer would be 'wms' + getId() like: 'wms123456'. The id returned here is the number part not the layer identifier part.
        Returns:
        the unique id for this component. Used for naming purposes.
      • getJSResourceReferences

        JavaScriptResourceReference[] getJSResourceReferences()
        In some cases a javascript component will provide its own javascript resource. This is used by the map to add in the references.
        Returns: