POST
|
The information are very helpful, thank you. I generate the token use the link. https://www.arcgis.com/sharing/generateToken?f=json&request=gettoken&username=username&password=password&referer=%22*%22 token format: var token = {"server":"http://www.arcgis.com/share/rest","userId":"userId","token":"token str","expires":number,"ssl"::false} call register token before create map esriId.registerToken(token);
... View more
04-20-2018
09:56 AM
|
0
|
0
|
1036
|
POST
|
I follow exactly step by step and the login box still pop up. See the below for my details implementation, any suggestions for the settings? Thank you. here is my config.json { "url":"https://www.arcgis.com","matchAll":true }, { "url": "http://wretetw.maps.arcgis.com", "matchAll":true }, { "url":"http://wretetw.maps.arcgis.com/sharing/rest", "matchAll": true, "username":"username", "password":"password" }, and my javascript file to display the web map. <script> require([ "esri/urlUtils", "esri/map", "esri/arcgis/utils", "esri/dijit/Legend", "esri/SpatialReference", "esri/geometry/Point", "esri/symbols/SimpleMarkerSymbol", "esri/graphic", "dojo/domReady!" ], function(urlUtils,Map, arcgisUtils, Legend, SpatialReference, Point, SimpleMarkerSymbol, Graphic){ urlUtils.addProxyRule({ urlPrefix: "http://wretetw.maps.arcgis.com", proxyUrl: "http://localhost:3692/proxy" }); arcgisUtils.createMap("item number", "mapDiv").then(function (response) { map = response.map; }); }); </script>
... View more
04-20-2018
07:37 AM
|
0
|
2
|
1036
|
POST
|
I'm sure the proxy can help resolve the issues, but right now I only have is the map ID, an usename and password. I testing it using Nodejs proxy resource code but it still pop up the login box. Dose Arcgis has some working example that might be very helpful. Thank you.
... View more
04-19-2018
09:08 AM
|
0
|
4
|
1036
|
POST
|
Is Resource Proxy is only for secure layer and features? Does the proxy support private webmap? I set up a nodejs version of the proxy server But it did not work.Any code example that can help me better understand the settings. Thank you.
... View more
04-19-2018
08:26 AM
|
0
|
6
|
1036
|
POST
|
My project was switch the webmap from public to private and it's pop up the box to ask for login. How can I bypass the dialog box and use the username, password to authenticate inside my app? I know in swift application or objective C, we can use the portal credential to login automatically. But inside javascript there is no such setting, any help?
... View more
04-19-2018
08:04 AM
|
0
|
8
|
1294
|
POST
|
Previously, I thought it's the file incomplete issue, but it seems that is a memory problem.The below code is the popups are contained popups item and even I call dismiss to close up the popup window and reload the file, it throws an internal error. But if the popups are an empty array the mmpk file reloads successfully. Also, I try to call the clearAllPopups() to clean up the popups the app is crash. Any idea why the self?.popupsVC = nil is not working? self?.popupsVC = AGSPopupsViewController(popups:popups, containerStyle: .navigationBar)
... View more
03-08-2018
01:06 PM
|
0
|
0
|
326
|
POST
|
I found the issue, The file is not 100% download during the download process, that might cause the app gives an internal error. Thanks for your help.
... View more
03-07-2018
01:47 PM
|
0
|
0
|
326
|
POST
|
Thanks, Divesh. The app has a checkForUpdate function to check for file update every 5 minutes, if there is a newer version, then I'm trying to delete the old file and replacing it with the new MMPK file. then load it into the map view. But I got an internal error message whenever the new MMPK is smaller than the older file.Is that a memory allocation issue? I only get an internal error from the load completion function, and I don't know what exactly is that mean.
... View more
03-07-2018
01:03 PM
|
0
|
0
|
326
|
POST
|
I'm trying to keep the latest updated version of the mmpk file to my iOS app. Loading for the first time of that mmpk file is fine. After downloading the mmpk file using the network request and try to load the mmpk file, it fails and gives back an internal error. That happens only when the new mmpk with different size. Any suggestion or solution for this internal error message?
... View more
03-07-2018
07:55 AM
|
0
|
4
|
430
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|