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
<SPAN class="keyword token">import</SPAN> getpass
pw <SPAN class="operator token">=</SPAN> getpass<SPAN class="punctuation token">.</SPAN>getpass<SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">from</SPAN> arcgis<SPAN class="punctuation token">.</SPAN>gis <SPAN class="keyword token">import</SPAN> <SPAN class="operator token">*</SPAN>
gis <SPAN class="operator token">=</SPAN> GIS<SPAN class="punctuation token">(</SPAN><SPAN class="string token"><SPAN>'</SPAN><A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2FMyPortal.maps.arcgis.com%2F" target="_blank">https://MyPortal.maps.arcgis.com/</A><SPAN>'</SPAN></SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'MyUsername'</SPAN><SPAN class="punctuation token">,</SPAN> pw<SPAN class="punctuation token">)</SPAN>
csvitem <SPAN class="operator token">=</SPAN> gis<SPAN class="punctuation token">.</SPAN>content<SPAN class="punctuation token">.</SPAN>add<SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">{</SPAN><SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'Fluege.csv'</SPAN><SPAN class="punctuation token">)</SPAN>
csvlyr <SPAN class="operator token">=</SPAN> csvitem<SPAN class="punctuation token">.</SPAN>publish<SPAN class="punctuation token">(</SPAN>None<SPAN class="punctuation token">,</SPAN> <SPAN class="punctuation token">{</SPAN><SPAN class="string token">'City'</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="string token">'Ort'</SPAN><SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">)</SPAN>
map <SPAN class="operator token">=</SPAN> gis<SPAN class="punctuation token">.</SPAN>map<SPAN class="punctuation token">(</SPAN>location<SPAN class="operator token">=</SPAN><SPAN class="string token">'Deutschland'</SPAN><SPAN class="punctuation token">,</SPAN> zoomlevel<SPAN class="operator token">=</SPAN><SPAN class="number token">5</SPAN><SPAN class="punctuation token">)</SPAN>
map
map<SPAN class="punctuation token">.</SPAN>add_layer<SPAN class="punctuation token">(</SPAN>csvlyr<SPAN class="punctuation token">)</SPAN>
<SPAN class="comment token"># CSV Data not shown yet..</SPAN>
csvlyr<SPAN class="punctuation token">.</SPAN>share<SPAN class="punctuation token">(</SPAN>everyone<SPAN class="operator token">=</SPAN><SPAN class="token boolean">True</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="comment token"># CSV Data shown..</SPAN>
<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>