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)
csvlyr.share(everyone=True)