Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we view non-public maps? #76

Open
trifroggy opened this issue Jun 23, 2017 · 1 comment
Open

Can we view non-public maps? #76

trifroggy opened this issue Jun 23, 2017 · 1 comment

Comments

@trifroggy
Copy link

The plugin works great as it is but I'm trying to see if it can also be used to view a non-public map. For example, one that you create for a group.
When I just pass an ID I get (as expected)
message: "You do not have permissions to access this resource or perform this operation."
messageCode : "GWM_0003"

Is there a way to pass a token as well to access the resource?

Thank you!
Gregory

@jgravois
Copy link
Contributor

jgravois commented Jul 3, 2017

as mentioned in the CHANGELOG, support for private webmaps was added in v0.3.4

var webmap = L.esri.webMap(webmapId, {
    map: L.map("map"),
    token: 'abc123...'
});

test/arcgis-online-auth.html is an example which utilizes OAuth to allow end users to sign in with their own credentials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants