VectorBasemapStyleEditor icon indicating copy to clipboard operation
VectorBasemapStyleEditor copied to clipboard

Select one Item ,but get error info

Open htornado opened this issue 7 years ago • 3 comments

Hi, John Need help from you !

My step to use your source code to change vectorbasemapStyle.

  1. Depoly the source code on my local portal
  2. Change the config.js
  3. Success Load
  4. Log in
  5. Get Three item ( type: Vector Tile Service)
  6. But when I select one item , map doesn't load the layer and console show info like blew:

Error: Resource does not exist or is inaccessible. at Object.f.load (init.js:998) at init.js:87 at c (init.js:103) at d (init.js:103) at b.Deferred.resolve.callback (init.js:105) at c (init.js:104) at d (init.js:103) at b.Deferred.resolve.callback (init.js:105) at init.js:92 at k (init.js:107)

Any advice ? Thanks first!

htornado avatar Nov 08 '17 02:11 htornado

When click Item [detail],
It redirct to https://undefined.portal/home/item.html?id=88e330cfe9ea468a88b079b31c67e4be
Something was wrong at blew position:

var detailsNode = put(titleNode, "span.basemap-item-action", "details"); on(detailsNode, "click", function (evt) { evt.stopPropagation(); var detailsUrlTemplate = (item.owner === this.portalUser.username) ? "{0}//{1}.{2}/home/item.html?id={4}" : "{0}//{3}/home/item.html?id={4}"; var agsDetailsUrl = lang.replace(detailsUrlTemplate, [document.location.protocol, this.portalUser.portal.urlKey, this.portalUser.portal.customBaseUrl, this.portalUser.portal.portalHostname, item.id]); window.open(agsDetailsUrl); }.bind(this));

Hope you can check and fix it !

htornado avatar Nov 08 '17 02:11 htornado

I can't replicate this issue, but it looks like the code is having problems building an appropriate ArcGIS.com url to the item. What did you change in the config.js? Please note that this app doesn't support local Portals, only ArcGIS.com.

jgrayson-apl avatar Dec 11 '17 20:12 jgrayson-apl

If this app doesn't support local portals, make me clear. what's I have done is

  1. depoly your app
  2. register the app url to my local portal ,then register it and get a applicationID 3.change the config.js!
    oauthappid \ sharinghost
  3. Log in

Look forward that your app can support local portals Thanks in advance!

htornado avatar Dec 12 '17 09:12 htornado