Oskari API Documentation

Select bundle

admindown-arrow
cataloguedown-arrow
  • metadata
    Generic functionality to display metadata from a CSW-service
  • metadatasearch
    Provides metadata catalogue search user-interface for an application.
frameworkdown-arrow
  • announcements
    Bundle for displaying announcements made with admin-announcements.
  • Core services
    Provided by the framework
  • layeranalytics
    Map layer problem tracker
  • layerlist
    A layer listing functionality for the geoportal.
  • mydata
    Provides generic container for listing user data and offers other functionalities a way to present user-specific information.
  • Map Publisher 2
    Allows creation of embedded maps
  • RPC
  • Search
    Provides basic search functionality without any UI
  • Selected-featuredata
    Allows infobox opening in new flyout
  • statehandler
    History functionality and state saving.
  • usagetracker
    Pings the server when any of the configured events occur.
mappingdown-arrow
statisticsdown-arrow
  • statsgrid2016
    Statistics data display. This will replace the statsgrid bundle specification when the implementation has the comparable functionalities as the current one. The bundle depends on mapstats-bundle that provides support for statslayer layertype.
uidown-arrow

userguide

Description

Creates the Userguide flyout with title and content.

Bundle configuration

Bundle needs title(s) and data as configuration. There are two options to make the configuration:

  1. If you have only one document to show and you don't need any tabs, you can make the configuration to the locale.
{
  "help": {
      tags: "tag1, tag2",
      contentPart: "body"
  }
};

The bundle will create basic flyout with content defined by tags.

  1. If you wish to have tabs, they should be found in configuration as follows:
{
  "tabs": [
      {title: "title1", tags: "tag1"},
      {title: "title2", tags: "tag2"},
      {title: "title3", tags: "tag3"},
      {title: "title4", tags: "tag4"}
  ]
};

The bundle creates as many tabs as there are them in configuration. If there is no configuration, the bundle gets tags from locale.

Method getHelpArticle fetches an article from the server using getAjaxUrl method.

jQuery.ajax({
        url: me.sandbox.getAjaxUrl() + 'action_route=GetArticlesByTag',
        data: {
            tags: taglist
        },
        type: 'GET',
        dataType: 'json'
});

Example of Request URL:

http://www.paikkatietoikkuna.fi/web/fi/kartta?p_p_id=Portti2Map_WAR_portti2mapportlet&p_p_lifecycle=2&action_route=GetArticlesByTag&tags=tag1%2Ctag2

Requests the bundle sends out

RequestWhy/when
userinterface.RemoveExtensionRequestWhen the bundle is stopped, defaultExtension is removed

Events the bundle listens to

EventHow does the bundle react
userinterface.ExtensionUpdatedEventHandles the updated event