AnsweredAssumed Answered

ArcGIS Python API not showing private layer

Question asked by j.buchtaesri-de-esridist Employee on Sep 13, 2016
Latest reply on Sep 15, 2016 by bixb0012

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..

Outcomes