ArcGIS Python API not showing private layer

1177
3
09-13-2016 05:30 AM
JensBuchta
Occasional Contributor

I'm trying to display data of a private Feature Service, I acutally just created right before. The data is not shown on the map. If I change the Feature Service to be public, the data displays just fine.

Anyone experienced the same behavior?

Kind Regards

Jens

import getpass
pw = getpass.getpass()
from arcgis.gis import *
gis = GIS('https://MyPortal.maps.arcgis.com/', 'MyUsername', pw)
csvitem = gis.content.add({}, 'Fluege.csv')
csvlyr = csvitem.publish(None, {'City':'Ort'})
map = gis.map(location='Deutschland', zoomlevel=5)
map
map.add_layer(csvlyr)
# CSV Data not shown yet..


csvlyr.share(everyone=True)
# CSV Data shown..
0 Kudos
3 Replies
ChristianWells
Esri Contributor

Hi Jens, Please post any Python API Beta questions over in the Early Adopter Community as this product is still in beta. https://earlyadopter.esri.com 

JensBuchta
Occasional Contributor

Sorry, I haven't seen the Beta Program as I first launched the Early Adopter platform and ArcGIS Python API was not listed under Beta Opportunities. I've just overseen the "Join the Beta" link on ArcGIS API for Python | ArcGIS for Developers .

Furhtermore, the link "Forum" on ArcGIS API for Python | ArcGIS for Developers links to this GeoNet area.

Very confusing but posting in EAP makes absolutely sense, so thanks for the hint.

0 Kudos
JoshuaBixby
MVP Esteemed Contributor

Christian, as much as your comments are outwardly correct and a good response, I think one could argue that GeoNet is a better place for discussion of open beta products than some cobbled together forums tucked away in some corner somewhere.  If the beta was closed, it would be a different story, but this is a public beta, and Esri should embrace openness.

0 Kudos