Hello all,
I have an application using the Javascript API 4.9, that want load a 'Web Mapping Application' from my organization. I created the login page, and load all itens from the Portal, so, I have the PortalItem with type='Web Mapping Application'. But when I try to create a WebMap using this PortalItem and load into a <div>, I have a error:
- details:
- type: "Web Mapping Application"
- __proto__: Object
- message: "Invalid portal item type 'Web Mapping Application', expected 'Web Map'"
- name: "webmap:invalid-portal-item"
So, if the object WebMap do not accept Web Mapping Application, how should I load it?
Thank you!
Solved! Go to Solution.
A web application uses a web map most of the time, so you need to find the ID of the web map that the app uses and use that portal I’d instead.
A web application uses a web map most of the time, so you need to find the ID of the web map that the app uses and use that portal I’d instead.
Thank you. But, doing this, when I display will not be like the app, right? I would like to have the navegation tools of the app as well.
Guilherme,
Correct it will not be like the app. Sorry that is not possible.
Robert,
Ok, thank you for the help!
Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.