Skip To Content ArcGIS for Developers Sign In Dashboard

LocalMapService Class

(Esri::ArcGISRuntime::LocalMapService)

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

Header: #include <LocalMapService>
Inherits: LocalService
Inherited By:

Esri::ArcGISRuntime::LocalFeatureService

Public Functions

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

Additional Inherited Members

Detailed Description

A map service that runs on the local server.

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

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

Member Function Documentation

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

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

LocalMapService::~LocalMapService()

Destructor.

QList<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().

void LocalMapService::setDynamicWorkspaces(const QList<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().


Feedback on this topic?