こんにちは、
この例に興味があります:https://esri.github.io/esri-leaflet/examples/premium-content.html
(Esri-Leaflet プロジェクトに認証付きのプライベートレイヤーを追加したいです。)
この例は Esri-Leaflet のウェブサイト上では正常に動作します。しかし、自分の環境(自分のコンピュータ上の doc.html)で試すと動作しません。「Add trafic layer」というリンクをクリックすると、「'Invalid redirect_uri - error 400'」と表示されます。
なぜかご存知の方はいらっしゃいますか?
ありがとうございます、
That sample utilizes browser based named user login, which requires that you create and register an application of your own in ArcGIS Online.
Browser-based Named User Login | ArcGIS for Developers
this model necessitates that you identify where your application is hosted (both while it is being developed and in production) via redirect uris of your own so that ArcGIS Online doesn't allow folks to sign and in and pass their credentials to an unknown malicious third party.
Thanks for your response.
To be precise, I have a feature layer in my arcgis online account and I simply want to share it in private in my esri leaflet project (Web app) without using ArcGIS for developper . Is there a method to put my user name and password in my code so the feature layer can appear in my project ? (Even if it's not recommanded)
thats a totally different question.
authentication - How to use layers from trusted servers in ArcGIS Online? - Geographic Information Systems Stack Exchang…
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.