Esri / TilePackageKreator

Tile Package Kreator
Apache License 2.0
28 stars 10 forks source link

Deep Linking between applications #13

Open defiantgoat opened 7 years ago

defiantgoat commented 7 years ago

Currently implemented, but needs further testing and refinement.

defiantgoat commented 7 years ago

Tile Package Tool Deep Linking Spec

The tile package tool uses the x-callback-url specification (http://x-callback-url.com/specifications/).

The parameters listed below are based on using the current Portal object and the parameters it provides.

Research suggests that a maximum character length of 2000 for a url is still advisable.

arcgis-tilepackage://x-callback-url/[action]?[action parameters]&[x-callback parameters]

Note: the parameters are URL encoded

Protocol

x-callback-url protocol is defined in http://x-callback-url.com/

Actions [REQUIRED]

/create

Create a new tile package

Request Parameters

Return Parameters

===

/upload

Upload a local tile package to online

Request Parameters

Return Parameters

x-callback parameters

This is optional but recommended for better user experience

Examples

arcgis-tilepackage://x-callback-url/create?token=4-cvk290NVFk2f9ozqgYQidFz5NPZXe-ZMrqI1nqlxTifWhPR6IhkqSXdvZPC2G8_4R9wyHxTX1u6TmN5L_FgAx_LyAUrMxXJHolIEaeLDZfUmURBMrTEO1Xn9a9TLOUb6FMrwfwpHGhRWFA7xMAZcGLxmTJyi_Pqa84fd_hPxKqQ2meD4ApAfSCCp52GWC4ODn8ihwzNJh-nbAzZY9SHw..&username=bilbo_baggins&canpublish=true&center=13.298383,-89.383838&savelocal=false&tileservice=Dark%20Gray&x-source=Survey123&x-success=arcgis-survey123://