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

How to find the actual webmap ID in the Story Map Series #41

Open
blazeon3 opened this issue Apr 29, 2018 · 1 comment
Open

How to find the actual webmap ID in the Story Map Series #41

blazeon3 opened this issue Apr 29, 2018 · 1 comment

Comments

@blazeon3
Copy link

Hi,

I need to find the ID of the current web map that is displayed in the app. I need to save the ID in the new variable and work with it.
I need an application that changes the legend according to what the web map ID is.

Thanks for the anwers

@ecmanghi
Copy link

You can get at the ID in a couple different ways. You can look directly at global app variable (app.data.getStoryEntries() will return a list of the contents and you can find the ID via the media property). You can also listen to topic.subscribe("story-loaded-map"). This will fire each time a map is loaded and the returned result holds the webmap ID. The developer guide lays out some other options as well.

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