Select to view content in your preferred language

Cannot map Web Maps from AGO Orginizational Account

620
2
Jump to solution
10-11-2017 05:59 AM
ZacharyHart
Honored Contributor

So, I can successfully log into my AGO account and setup the GIS that way. I can find information about my account etc. I can query web map content from the API as well and display the results. I can even map the result of the query gis.map(search_result) and see the web map as it should be displayed. 

But I cannot map specific web maps by their name.

map = gis.map('MyOffices')
map

A map appears but only the basemap appears, not the web map content.

Any thoughts on this?

0 Kudos
1 Solution

Accepted Solutions
RohitSingh2
Esri Contributor

gis.map() does not accept webmap names. You need to pass in a web map item, or the name of a location that it geocodes and uses for it's initial extent.

View solution in original post

2 Replies
RohitSingh2
Esri Contributor

gis.map() does not accept webmap names. You need to pass in a web map item, or the name of a location that it geocodes and uses for it's initial extent.

ZacharyHart
Honored Contributor

I see...that makes sense now, thanks!

0 Kudos