Documentation for the beta Esri Arcgis Python API can be found here: http://esri.github.io/arcgis-python-api/apidoc/html/index.html
In [107]:
from arcgis.gis import *
from arcgis.viz import MapView
from IPython.display import display
Use your developers account. If you do not have one, you can register freely at http://developers.arcgis.com/sign-up
In [108]:
username = "Bierkaai"
password = "nen-HAy-d4C-yXQ"
gis_portal = GIS("http://www.arcgis.com", username, password)
In [130]:
map_shg2 = gis_portal.map("Schiphol")
In [152]:
content = gis_portal.content.search("IWF", "Feature Service")
In [153]:
for i,x in enumerate(content):
print("{0} -> {1}".format(i, x.title))
In [154]:
map_shg.add_layer(content[2])
In [145]:
map_shg.addlayer
Out[145]:
In [132]:
map_shg2.addlayer
Out[132]:
In [137]:
map_shg.center = gis_portal.tools.geocoder.find_best_match("Schiphol", 6)
In [138]:
map_shg
In [ ]: