View source: R/suso_api_maps.R
suso_mapupload | R Documentation |
Allows the user to upload a zip file of background maps and boundary files
suso_mapupload(
server = suso_get_api_key("susoServer"),
apiUser = suso_get_api_key("susoUser"),
apiPass = suso_get_api_key("susoPass"),
workspace = NULL,
token = NULL,
path_to_zip = NULL
)
server |
Survey Solutions server address |
apiUser |
Survey Solutions API user |
apiPass |
Survey Solutions API password |
workspace |
server workspace, if nothing provided, defaults to primary |
token |
If Survey Solutions server token is provided apiUser and apiPass will be ignored |
path_to_zip |
either path to zip file or directory of files which will automatically be zipped as required |
Resources for upload must meet the requirements specified under: https://docs.mysurvey.solutions/headquarters/mapsmanage/map-formats/, Attention: this uses the GraphQL API, not the REST API.
Returns a data.table, with information about the uploaded maps
## Not run:
# either upload the content of a folder
suso_mapupload(workspace = "myworkspace",
path_to_zip = "./mapfiles/")
# or a zip file with the files included
suso_mapupload(workspace = "myworkspace",
path_to_zip = "../mapfiles/maps.zip")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.