LocalMapService Class

  • LocalMapService
  • class Esri::ArcGISRuntime::LocalMapService

    A map service that runs on the local server. More...

    Header: #include <LocalMapService.h>
    Inherits: Esri::ArcGISRuntime::LocalService
    Inherited By:

    Esri::ArcGISRuntime::LocalFeatureService

    Public Functions

    LocalMapService(const QString &packagePath, QObject *parent = nullptr)
    virtual ~LocalMapService() override
    QList<Esri::ArcGISRuntime::DynamicWorkspace *> dynamicWorkspaces() const
    int maximumRecords() const
    void setDynamicWorkspaces(const QList<Esri::ArcGISRuntime::DynamicWorkspace *> &dynamicWorkspaces)
    void setMaximumRecords(int maxRecords)

    Detailed Description

    Note: Local server is only available on Windows and Linux.

    A local map service requires a map package file (.mpkx) which has been authored in ArcGIS Pro.

    Member Function Documentation

    [explicit] LocalMapService::LocalMapService(const QString &packagePath, QObject *parent = nullptr)

    Constructor that takes a path to the map package file (packagePath) and an optional parent.

    [override virtual] LocalMapService::~LocalMapService()

    Destructor.

    [since Esri::ArcGISRuntime 100.1] QList<Esri::ArcGISRuntime::DynamicWorkspace *> LocalMapService::dynamicWorkspaces() const

    Returns the dynamic workspaces if any have been specified.

    This function was introduced in Esri::ArcGISRuntime 100.1.

    See also setDynamicWorkspaces().

    int LocalMapService::maximumRecords() const

    Returns the maximum number of records returned by the service.

    The default value is 10000.

    See also setMaximumRecords().

    [since Esri::ArcGISRuntime 100.1] void LocalMapService::setDynamicWorkspaces(const QList<Esri::ArcGISRuntime::DynamicWorkspace *> &dynamicWorkspaces)

    Sets the dynamic workspaces to dynamicWorkspaces.

    This can only be set before the local map service has been started.

    This function was introduced in Esri::ArcGISRuntime 100.1.

    See also dynamicWorkspaces().

    void LocalMapService::setMaximumRecords(int maxRecords)

    Sets the maximum number of records returned by the service to maxRecords.

    This number is limited to the maximum number of features visible in the map. The default value is 10000. This value must be set before the service starts.

    See also maximumRecords().

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.