This namespace contains function helpers that execute requests to Mapspace web services.
- Source:
- mapspace/bu.jsdoc
Methods
-
<static> checkSession(load, error)
-
Execute a request to the
CheckSessionservice, returning true if current user is valid.Parameters:
Name Type Description loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> deleteAllExternalProviderTmpBackup(load, error)
-
Execute a request to the
DeleteAllExternalProviderTmpBackupservice to delete all the features for any external provider stored in Terratec storage services.Parameters:
Name Type Description loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> deleteUserWorkspace(name, load, error)
-
Executes a request to the
DeleteUserWorkspaceservice, removing a workspace in the server.Parameters:
Name Type Description namestring The name of the workspace to remove.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getCustomLayers(load, error)
-
Execute a request to the
GetCustomLayers, returning the list of custom layers for a user.Parameters:
Name Type Description loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getDefaultUserWorkspaces(load, error)
-
Execute a request to the
GetDefaultUserWorkspacesservice, returning a JSON object that has adatavalue containing an array of objects representing workspace definitions with the default workspaces for the user.Parameters:
Name Type Description loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getExternalProviderStats(provider, status, action, time, load, error)
-
Execute a request to the
GetExternalProviderStatsservice to query historical statistical data.Parameters:
Name Type Argument Description providerMapspace.FeatureProviderStore Provider name.
statusMapspace.FeatureProviderStatus <nullable>
Optional status of the feature in the server.
actionMapspace.FeatureServerActionType <nullable>
Optional type of action performed in the original feature.
timenumbner <nullable>
Optional time filter of the image to be search. A date following the structure YYYYMMDD or YYYYMM or YYYY. The service will retrieve the most current features available, whose date is previous to the requested date. It is also possible to use a range of dates with the structure YYYYMMDD-YYYYMMDD, in this case the features used will be the most current ones available in the specified date range. If the parameter is omitted the system will retrieve all features.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getExternalProviderTmpBackup(provider, status, ids, bbox, load, error)
-
Execute a request to the
GetExternalProviderTmpBackupservice to retrieve all the features for a given external provider stored in Terratec storage services.Parameters:
Name Type Argument Description providerMapspace.FeatureProviderStore Provider name.
statusMapspace.FeatureProviderStatus | Array.<Mapspace.FeatureProviderStatus> <nullable>
Optional status. Can be one value or an array of values.
idsArray.<string> <nullable>
Optional array of IDs to filter the result.
bboxMapspace.Extent <nullable>
Optional bounding box in EPSG:4326 projection system.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getGenericWMTSOrWMSCapabilities(url, isWMS, load, error)
-
Execute a request to any WMS/WMTS
GetCapabilitiesservice.Parameters:
Name Type Description urlstring URL of the WMS/WMTS service.
isWMSboolean If the service is WMS or WMTS.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getLayouts(load, error)
-
Execute a request to the
GetLayoutsservice, returning Mapspace Viewer layout for certain user.Parameters:
Name Type Description loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getMapspaceWFSCapabilities(load, error)
-
Execute a request to the Mapspace WFS (
INWFSPROXY) service.Parameters:
Name Type Description loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getMapspaceWMTSCapabilities(version, load, error)
-
Execute a request to the Mapspace WMTS (
DAWMTS) service.Parameters:
Name Type Description versionstring Version of the WMTS service.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getPOIProviders(format, load, error)
-
Execute a request to the
GetPOIProvidersservice, returning the available POIs providers for certain user.Parameters:
Name Type Description formatMapspace.ResponseFormat Format of the response.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getReverseGeocoding(point, zoom_level, srs, format, load, error)
-
Execute a request to the
SEInvAddressservice, returning the address for a given point defined by its coordinates.Parameters:
Name Type Description pointMapspace.Coordinate Point in which search for reverse geocoding.
zoom_levelnumber Map view zoom level.
srsstring Spatial Reference System of the origin projection in EPSG:XXXX format.
formatMapspace.ResponseFormat Format of the response.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getSRSInfo(epsg, format, load, error)
-
Execute a request to the
INGetSRSservice returning the projection information for a given EPSG code.Parameters:
Name Type Description epsgstring This is the EPSG code used to search by code. The value must be only the number without prefixing with 'EPSG:'.
formatMapspace.ResponseFormat Format used in the response.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getSRSInfoList(name, format, load, error)
-
Execute a request to the
INGetSRSservice searching the available projections that matches a given name.Parameters:
Name Type Description namestring This is the string used to search projection by name.
formatMapspace.ResponseFormat Format used in the response.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getTeg(tegid, id, load, error)
-
Execute a request to the
INGetTegservice, returning the requested Teg file.Parameters:
Name Type Description tegidstring Teg identifier
idstring Tile quadtree identifier
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getUserAvailableBaselayers(format, priority, load, error)
-
Execute a request to the
INUserOrthoLayersservice, returning all available baselayers for a certain user.Parameters:
Name Type Description formatMapspace.ResponseFormat Format used in the response.
priorityboolean If true that indicates that response must respect current user baselayers with order. False must return all available baselayers for all users.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getUserAvailableData(user, format, x, y, zoom_level, srs, types, yearMode, deliverExtents, includeOverlays, load, error)
-
Execute a request to the
GetUserAvailableDataservice, returning a list of available ortho layers for a user.Parameters:
Name Type Description userstring Userkey of the user to request information for.
formatMapspace.ResponseFormatExtended Format used in the response.
xnumber X coordinate in the
srsreference system.ynumber Y coordinate in the
srsreference system.zoom_levelnumber Zoom level.
srsstring Spatial Reference System of the origin projection in EPSG:XXXX format.
typesMapspace.BaselayerType Indicates if request is for ortho or oblique.
yearModeboolean Indicates if year is requested.
deliverExtentsboolean Indicates if extents are requested.
includeOverlaysboolean Indicates if overlays are requested.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getUserAvailableDtm3DLayers(format, load, error)
-
Execute a request to the
INGetUserAvailableDtm3DLayersservice, returning a list of available DTM 3D layers for a user.Parameters:
Name Type Description formatMapspace.ResponseFormatExtended Format used in the response.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getUserAvailableLidarLayers(format, load, error)
-
Execute a request to the
INGetUserAvailableLidarLayersservice, returning a list of available LiDAR layers for a user.Parameters:
Name Type Description formatMapspace.ResponseFormatExtended Format used in the response.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getUserAvailableMesh3DLayers(format, load, error)
-
Execute a request to the
INGetUserAvailable3DMeshLayersservice, returning a list of available 3D MEsh layers for a user.Parameters:
Name Type Description formatMapspace.ResponseFormatExtended Format used in the response.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getUserAvailableObliqueLayers(format, priority, load, error)
-
Execute a request to the
INGetUserAvailableObliqueLayersservice, returning all available oblique layers for a certain user.Parameters:
Name Type Description formatMapspace.ResponseFormat Format used in the response.
priorityboolean If true that indicates that response must respect current user oblique layers with order. False must return all available oblique layers for all users.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getUserAvailableOverlays(format, load, error)
-
Execute a request to the
INUserOverlayLayersservice, returning all available overlays for a certain user.Parameters:
Name Type Description formatMapspace.ResponseFormat Format used in the response.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getUserAvailableProviders(format, load, error)
-
Execute a request to the
INUserAddressSources, returning all available external providers for a certain user. It will deliver information about external providers and services of those external providers allowed to the user.Parameters:
Name Type Description formatMapspace.ResponseFormatExtended Format used in the response.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getUserAvailableStreetLayers(priority, format, load, error)
-
Execute a request to the
INGetUserAvailableStreetLayers, returning all available street layers for a certain user.Parameters:
Name Type Description priorityboolean If priority is true indicates that response must respect current user baselayers with order.
formatMapspace.ResponseFormatExtended Format used in the response.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getUserAvailableVectorLayers(format, load, error)
-
Execute a request to the
INGetUserAvailableVectorLayersservice, returning a list of available vector layers for a user. This service returns the same array of WFS feature type names that thegetMapspaceWFSCapabilitiesfunction returns.Parameters:
Name Type Description formatMapspace.ResponseFormatExtended Format used in the response.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getUserLayers(format, load, error)
-
Execute a request to the
GetUserLayersservice returning a list of the availableUser layersfor a user. AUser layeris an object that contain all necessary information to access a given dataset according to layer (base layer, overlay layer, oblique layer or street layer), date interval (data available between dates) and extent (extension available for a dataset).Parameters:
Name Type Description formatMapspace.ResponseFormatExtended Format used in the response.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getUserLayersFormatList(format, load, error)
-
Execute a request to the
GetUserLayersFormatListservice, returning the list of the id and format type for userLayers.Parameters:
Name Type Description formatMapspace.ResponseFormatExtended Format used in the response.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getUserLidarProjects(format, load, error)
-
Execute a request to the 'INGetUserLidarProjects' service, returning a JSON object that has a list of LiDAR projects.
Parameters:
Name Type Description formatMapspace.ResponseFormat Format of the response.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getUserLogo(load, error)
-
Execute a request to the
GetUserLogoservice, returning client logo image.Parameters:
Name Type Description loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getUserMesh3DProjects(format, load, error)
-
Execute a request to the 'INGetUserMesh3DProjects' service, returning a JSON object that has a list of Mesh3D projects.
Parameters:
Name Type Description formatMapspace.ResponseFormat Format of the response.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getUserProfileInfo(profileId, extentId, load, error)
-
Execute a request to the 'GetUserProfileInfo' service, returning a JSON object that has a 'data' value containing diferent values depending on request parameters. Without parameters, the service returns information about diferent types of profiles. If profileId is used the service returns information about this profile type. If extentId is used the service returns the extent.
Parameters:
Name Type Description profileIdnumber | null Id of the profile.
extentIdnumber | null Id of the extent.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getUserStreetProjects(format, load, error)
-
Execute a request to the 'INGetUserStreetProjects' service, returning a JSON object that has a list of Street projects.
Parameters:
Name Type Description formatMapspace.ResponseFormat Format of the response.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getUserWorkspaceByUserAndName(name, load, error)
-
Executes a request to the
GetUserWorkspaceByUserAndNameservice, returning a JSON object that has adatavalue containing an object representing the definition of a given workspace. The object has adescriptionvalue with the description of the workspace and adefinitionvalue with the definition of that workspace.Parameters:
Name Type Description namestring The name of the workspace to search for.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getUserWorkspaceLog(name, load, error)
-
Executes a requesto to the 'GetUserWorkspaceLog' service, returning a JSON objecto that has data about workspace actions.
Parameters:
Name Type Description namestring Name of the workspace to request actions for.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> getUserWorkspacesNames(load, error)
-
Executes a request to the
GetUserWorkspacesNamesservice, returning a JSON object that has adatavalue containing an array of objects representing workspaces availables for the user. Each object has anamevalue with the name of the workspace and alast_modificationvalue with the date and time of last modification of that workspace.Parameters:
Name Type Description loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> insertUserWorkspace(name, description, definition, load, error)
-
Executes a request to the
InsertUserWorkspaceservice, inserting a workspace in the server.Parameters:
Name Type Description namestring The name of the workspace to insert.
descriptionstring A description for the workspace.
definitionstring A string version of a JSON object with the definition of the workspace.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> insertUserWorkspaceLog(name, actionId, load, error)
-
Executes a requesto to the 'InsertUserWorkspaceLog' service, returning a JSON objecto that has data about workspace actions.
Parameters:
Name Type Description namestring Name of the workspace to request actions for.
actionIdstring ID of the action.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> login(user, pwd, userkey, load, error)
-
Execute a request to the
Loginservice.Parameters:
Name Type Description userstring User name.
pwdstring Password. User name and password are encripted previously to send the data.
userkeystring userkey. If present then user and pwd are ignored and the userkey is used instead as the only param to login.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> logout(load, error)
-
Execute a request to the
Logoutservice.Parameters:
Name Type Description loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> projectCoordinates(format, points, srs1, srs2, load, error)
-
Execute a request to the
ProjectCoordinatesservice, transforming a list of 2D coordinates from one projection system to another one.Parameters:
Name Type Description formatMapspace.ResponseFormat Format used in the response.
pointsArray.<number> Array of coordinates to transform. The number of coordinates must be an even number. Odd numbers represent X coodinates and even coordinates represent Y coordinates.
srs1string Spatial Reference System of the origin projection in EPSG:XXXX format.
srs2string Spatial Reference System of the target projection in EPSG:XXXX format.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> resetPassword(user, pwd, newpwd, userkey, load, error)
-
Execute a request to the
reset passwordservice.Parameters:
Name Type Description userstring User name.
pwdstring Curent pnpassword.
newpwdstring New password.
userkeystring Userkey.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> saveExternalProviderTmpBackup(provider, status, action, featureid, geometry, featureInfo, load, error)
-
Execute a request to the
SaveExternalProviderTmpBackupservice, saving a feature in Terratec storage services.Parameters:
Name Type Argument Description providerMapspace.FeatureProviderStore Provider name.
statusMapspace.FeatureProviderStatus Status o the feature in the server.
actionMapspace.FeatureServerActionType Type of action performed in the original feature.
featureidstring <nullable>
Id of the original feature or an empty string for new feature.
geometrystring A WKT serialization of the geometry of the feature with coordinates in WGS84 lonlat.
featureInfostring A JSON serialization of the feature in Mapspace JSON format.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> sendRequest(url, method, load, error, mimetype, responseType)
-
ServiceRequest: This is the generic service launcher.
Parameters:
Name Type Argument Description urlfunction URL to be launched.
methodstring Http method to be used, (
GETorPOST).loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
mimetypestring <nullable>
An optional MIME type to override the default
text/xmltype.responseTypestring <nullable>
An optional string with the type of data contained in the response, to override the default
textvalue.- Source:
- mapspace/services.js
-
<static> sendRequestWithAuthentication(url, method, load, error, mimetype, responseType, user_value, pass_value)
-
ServiceRequest: This is the generic service launcher.
Parameters:
Name Type Argument Description urlfunction URL to be launched.
methodstring Http method to be used, (
GETorPOST).loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
mimetypestring <nullable>
An optional MIME type to override the default
text/xmltype.responseTypestring <nullable>
An optional string with the type of data contained in the response, to override the default
textvalue.user_valuestring <nullable>
An optional string with the user value for basic authentication request.
pass_valuestring <nullable>
An optional string with the password value for basic authentication request.
- Source:
- mapspace/services.js
-
<static> sendSupportForm(name, email, phone, message, load, error)
-
Execute a request to the
send message to Mapspace supportservice.Parameters:
Name Type Description namestring User name.
emailstring User email
phonestring User phone number
messagestring User message
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> setUserPreferences(load, error)
-
Execute a request to the
SetUserPreferencesservice.Parameters:
Name Type Description loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> updateExternalProviderTmpBackup(id, status, action, featureid, geometry, featureinfo, load, error)
-
Execute a request to the
UpdateExternalProviderTmpBackupservice to update a feature in Terratec storage services.Parameters:
Name Type Argument Description idstring Id of the feature in Terratec storage services.
statusMapspace.FeatureProviderStatus <nullable>
Optional status of the feature in the server.
actionMapspace.FeatureServerActionType <nullable>
Optional type of action performed in the original feature.
featureidstring <nullable>
Id of the original feature or an empty string for new feature.
geometrystring <nullable>
Optional WKT serialization of the geometry of the feature with coordinates in WGS84 lonlat.
featureinfostring <nullable>
Optional JSON serialization of the feature in Mapspace JSON format.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js
-
<static> updateUserWorkspace(name, description, definition, newname, load, error)
-
Executes a request to the
UpdateUserWorkspaceservice, updating a workspace in the server.Parameters:
Name Type Argument Description namestring The name of the workspace to update.
descriptionstring A description for the workspace.
definitionstring A string version of a JSON object with the definition of the workspace.
newnamestring <nullable>
An optional new name for the workspace. If present then the workspace is renamed when updated.
loadfunction Function to execute if response is loaded.
errorfunction Function to execute if response has an error.
- Source:
- mapspace/services.js